how to use python visual debugger in colab

Viewed 458

Does anyone knows a visual debugger that can be used with google colab. I tried PixieDebugger, however, its not working for me, I can install it and import it but when I use it in Colab(%%pixie_debugger) it doesn't show anything.

1 Answers

How visual do you want - have you tried the %debug magic?

Enter this into a cell and run it.

%debug
x = 1
y = 2
z = x * y
print(z)

You should see a prompt like this

ipdb>

It's a debugger so there are commands to examine variables and move forward and so on.

Type r to exit.

Related