Newbie help with Debugger
I'm trying to learn how to use the Debugger as shown in the PyCharm Tutorials (https://www.jetbrains.com/help/pycharm/debugging-your-first-python-application.html), but I'm not getting the same results as the instructions say I should.
I set the two Breakpoints as indicated and then select the Debug option. The Python script does not execute.
When I Run the script without the Breakpoints, it works fine, but when I set the Breakpoints, the last line in the console just tells me that I'm Connected to the pydev debugger...
If I click the Resume Program button, then the script runs, but the instructions say nothing about that. Is there an error in the description or am I doing something wrong?
If I continue to click the Resume Program button to force the error condition, when I click on the Debugger Window, it says that "Variables are not available".
Thanks for any help for this newbie.
Please sign in to leave a comment.
Hi Tedsemon,
>when I set the Breakpoints, the last line in the console just tells me that I'm Connected to the pydev debugger...
Most likely the script is paused on the first breakpoint.
>If I click the Resume Program button, then the script runs
Each time you click Resume the script continues execution after a breakpoint pause.
>If I continue to click the Resume Program button to force the error condition, when I click on the Debugger Window, it says that "Variables are not available".
At this point, the script is probably finished so there're no variables available to show in the UI.
It's hard to tell what exactly is going on by your description, perhaps a tutorial video by Paul can help: https://www.youtube.com/watch?v=QJtWxm12Eo0 Please feel free to record a screencast of your actions and send it to pycharm-support@jetbrains.com