I'm just starting to use pydev but am fairly experienced with Eclipse.
I can use F11 to debug a file.
I can use Ctrl-Alt-Enter to start a console after running the current file, but it does not seem to respect breakpoints.
Is there a way to start a console (similar to Ctrl-Alt-Enter) in debug mode?
The Python debugger is an interactive source code debugger for Python programs. It can set conditional breakpoints and single stepping at the source line level. It also supports inspection of stack frames, source code listing, and evaluation of arbitrary Python code in any stack frame's context.
To start the debugger from the Python interactive console, we are using run() or runeval(). To continue debugging, enter continue after the ( Pdb ) prompt and press Enter. If you want to know the options we can use in this, then after the ( Pdb ) prompt press the Tab key twice.
PyDev is a third-party plug-in for Eclipse. It is an Integrated Development Environment (IDE) used for programming in Python supporting code refactoring, graphical debugging, code analysis among other features.
Go to the menu: Alt + R + S + The number of the Run you wish (It can be Python, Jython, unit-test, etc). Note: if you were using unit-tests, you could use: Ctrl+F9 to run the unit-tests from the module (and even selecting which tests should be run -- and if Shift is pressed it's launched in debug mode).
There is another way to have a console in debug mode: start the debug, when reaching your first breakpoint (maybe you will want to add a breakpoint in line 1) the console in the debug perspective is in fact interactive.
Though the console is kind of laggy but it works, more info can be found at : http://pydev.org/manual_adv_debug_console.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With