DEBUGGER ON PYTHON
Hi guys, could anyone tell me how to use the debugger on repl.it for python, I tried searching how to debug on repl.it, but there were no results, so could someone please tell me how to use the debugger for python code?
Open a shell with C-S, and run
python3 -m pdb main.py And you can use these commands:
- pp (var)
- b (no) # set breakpoint
- c # run until next breakpoint
- r # run until function return
- n # move one line toward.
- s # move into the next function
anyways, here ya go:
To start, click the run button
now for these buttons, the first one is resume (continue running), second one is step over (skip a function call, etc.), next one is well, next (go to the next function call, etc.), the final one is to go back a function call.