Sandbox Labs
Running & Debugging Code
Execute code, read execution output, and debug with hints and Shadow Pair.
Learn how to run and debug your code in the Tedlab Academy sandbox.
Running Code
Click Run code in the editor toolbar. The cloud sandbox runs your lab entrypoint and streams output to the Execution trace panel.
Viewing Output
Stdout, stderr, and structured errors appear in the execution trace. Failed runs include messages to help you locate the issue.
Debugging tips
Add `console.log()` (or print statements in Python labs) to trace execution. Use Stuck? Get a nudge for Socratic hints, or open Shadow Pair for conversational help.
Coming soon
A step-through debugger and interactive terminal are not available yet. Use logging, execution output, and the AI assistants for now.
Error Messages
Read error messages carefully—they usually reference the failing command or runtime error returned by the sandbox.
