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
| Code | Meaning | Debug Steps |
|---|---|---|
VALIDATION_ERROR | AST validation failed | Check validation issues |
TIMEOUT | Exceeded timeout | Profile slow operations |
MAX_TOOL_CALLS | Too many tool calls | Review call patterns |
MAX_ITERATIONS | Loop limit hit | Check loop bounds |
TOOL_ERROR | Tool handler error | Debug tool handler |
MEMORY_LIMIT_EXCEEDED | Memory limit | Profile memory usage |
Scoring Gate Debugging
Log Score Details
Test Scoring Separately
Performance Debugging
Measure Tool Call Latency
Profile Memory Usage
Testing Scripts
Create a Test Harness
Related
- Common Errors - Error reference
- FAQ - Frequently asked questions