Skip to content
All lessons

Tech Insights· iqbalnaved.wordpress.com

ipdb can also be used when debugging issues with environments other than your local one. ipdb.runcall helps one debug issues on method calls through and IPython shell, and it's as simple as:

```

import ipdb import xpto_method # the method one wants to debug ipdb.runcall(xpto_method, 'method arg') (ipdb) ... ```

ipdb.runcall receives the method one wants to call as the first argument, and subsequent to that the target method arguments.

For more usage examples, check:

Shared by

Read on iqbalnaved.wordpress.com
  • Debug
  • Ipdb
  • Python

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us