Follow

Remember folks who do , you can use "ipython --pdb script.py" to launch a python script and end up in pdb (or ipdb/pdpbb if installed) if the script fails!

Also if "script.py" require argument put them after "--" like this:

ipython --pdb script.py -- argument1 -f pouet

Alternatively this also works for global python commands:

ipython --pdb $(which command) -- arguments

@olasd and with notebook that's the last big invention that radically change the way some people code 😋

@mmu_man @olasd you write "?" and you read the doc :p (it's just pdb on steroid)

Common commands: n, s, c, u, d, l, a

Sign in to participate in the conversation
Mastocafé

This is a mastodon instance for social justice activists, LGBTQIA+ people, and activists in general See the Goals and technical details, and Rules and privacy policy pages for more information