How to invoke Pycharm debugger from code?

Viewed 561

I see it is possible to invoke pdb debugger from code using:

import pdb;    pdb.set_trace()

Is there an equivalent for Pycharm debugger? As I would prefer to only learn one debugger. I want to run, rather than debug initially as debug is much slower.

Can I invoke pycharm debugger from a code line in some way?

2 Answers

There is no real way to invoke the debugger from your code, think of pycharm as something not related to your code. If you want to invoke debugger from your code, unfortunately pdb is the only way to do it.

Related