Debugger
Values, watch and call stack
What the drawer under the code shows.
- Variables: the values on the stopped line. Click one with a ▸ to open it (a list, a dictionary, an object).
- Watch: type an expression, like
total * 2orcart.items. It is worked out again at every stop. It runs in your program, sox = 5really changesx. - Call stack: the functions that led to this line, newest first. Click one to see its values and its line.
- Breakpoints: every red dot in the project. Click to open one; Remove all clears them.
- Output: what the program prints. While it runs, a box sends typed text to it, for
input().
When the program crashes, the debugger stops on the line that failed, with the error in red and the values as they were. Ask Zend to fix it sends the error, the steps and the output to the chat.
Good to know Stepping stays in your own files: it goes over libraries (node_modules, .venv, Python’s and Node’s own code). Only the main thread stops in Python. One file is debugged at a time per project.
Not working?
- It never stops at my dot
- The line may not run, or the dot is in another file than the one you started. Check the Breakpoints tab, or press Pause.
- “Node.js isn’t installed”
- JavaScript needs Node.js. Install it from nodejs.org, then start Zend Code again.
- My packages aren’t found (Python)
- The debugger uses the project’s
.venvorvenvfirst, else the Python on your PC. Make the virtual environment inside the project folder. - .tsx or .jsx files
- They can’t run directly in Node. Debug the plain .ts or .js file that starts your program.
