Skip to main content
This page covers techniques for debugging issues with Enclave code execution.

Validation Debugging

Pre-validate Code

Before running code in the enclave, validate it separately:

View Transformed Code

See what the code looks like after transformation:

Runtime Debugging

Use Console Logging

Console output is captured and available in results:

Track Tool Calls

Log all tool calls in your handler:

Inspect Execution Stats

Error Debugging

Detailed Error Information

Error Code Reference

Scoring Gate Debugging

Log Score Details

Test Scoring Separately

Performance Debugging

Measure Tool Call Latency

Profile Memory Usage

Testing Scripts

Create a Test Harness