Skip to content

Python Debugger

print('before breakpoint')

breakpoint()

Now you are in a real time breakpoint in your code, you can investigate what happened or is happening with commands

x = 1 x  # will print the variable name

Commands for using the debugger: l = list (print the current place in the file), each time prints a few more lines

l. = print the lines around the current line w = where s = step into function n = next r = return c = continue