Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to use python visual debugger in colab

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.

like image 754
ayaz umer Avatar asked May 16 '26 02:05

ayaz umer


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.

like image 140
Andrew Chisholm Avatar answered May 18 '26 21:05

Andrew Chisholm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!