Tips for getting Sandbox Output
This article describes how you can use Sandbox Output to debug your code.
Sandbox Output
Sometimes you may need some additional guidance while working through our lessons. In this scenario you can include print
statements to produce output in the Sandbox Output panel. We provide this information within the Break/Fix Lessons under the Language Selector > Info:


Keep in mind, you will need to interact with the target application to trigger output and that interaction is determined by the lesson instructions ( for example: login, add post etc.).
For printing debug statements, do not use the browser console for output. This tab will act like your development terminal/console. Also helpful: Why don't I see output during tests?
Supported Language Print Statement Examples
- C
- Clojure
- C++
- C# / .NET
- Go
- Java
- Kotlin
- Node
- Perl
- PHP
- Python
- Ruby
- Rust
- Scala
- TypeScript
SQL Injection Part 1 Example:
1. First, put a print statement in the code editor. In this case, we are putting a print statement in the login function and having it return the password.

2. Next, go back to the Target Application, open the Sandbox Output at the bottom. Then log in since this is the function your print statement exists in.

3. After you attempt to log in you will see the Sandbox Output will now have output that shows the password that was attempted.
