Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pycharm Debugger - Frames Not Available

I am having a baffling issue with Pycharm debugger... I am VERY new when it comes to working with the debugger, but I liked the ability to see the variables, etc. of the script to locate and resolve issues. I was making some changes to my directories and the default interpreter... but nothing that would seem to cause the following issue.

I cannot seem to get the variables to show up. I have a traceback showing up, but pycharm debugger just shows "Frame is not available" - so I am not able to troubleshoot to resolve it. See the screenshots below:

The Traceback

No Frames!!

like image 913
theStud54 Avatar asked Dec 08 '15 03:12

theStud54


People also ask

How can I see DataFrame in PyCharm?

In the Variables tab of the Debug tool window, select an array or a DataFrame. Click a link View as Array/View as DataFrame to the right. Alternatively, you can choose View as Array or View as DataFrame from the context menu.

What are frames in PyCharm?

Frames Last modified: 21 July 2022. The Frames pane enables you to gain access to the list of threads of your application. To examine a thread, select it from the list on top of the pane. The status and type of a thread is indicated by a special icon and a textual note next to the thread's name.

Where is PyCharm Debug egg?

pycharm-debug. egg file is located in root of your PyCharm installation directory. Copy it to the remote host and add it to Python path. And that's all!


1 Answers

I realized that I was not working with breakpoints right. What I wanted was the debugger to stop and load all the frames when there was an exception raised, not when a generic breakpoint was hit (as the breakpoint was in a loop that didnt throw an exception on every iteration). In pycharm, once you run the debugger WITHOUT any breakpoints, you can go back and "View Breakpoints" (Cntrl + Shift + F8 on Windows) change check the "Python Exception Breakpoint". This will cause the debugger to stop and load the frames when an exception is thrown! This was the missing piece in my jumbled mind!

Python view breakpoints dialog

like image 119
theStud54 Avatar answered Sep 19 '22 15:09

theStud54