PyCharm Workspace

10,973

Yes you can have this

Run you application code in Debug mode - look at the bottom frame "Debug".

Now you have 2 further panels Variables and Watches

Drag a "variable" into the Watches panel - and you can see it's value as the program is executed.

This works with Free and Pro versions of Py-Charm

Share:
10,973
Adam Warner
Author by

Adam Warner

Marketing Analyst spending majority of time in R and Python.

Updated on June 28, 2022

Comments

  • Adam Warner
    Adam Warner almost 2 years

    I am using PyCharm 5.0.3 and I was wondering if there is a way to have a window for the variable workspace similar to R or MatLab. I have seen that Spyder has similar panes to MatLab. This is what I am kind of looking for:

    Workspace

    I find the workspace window in MatLab very helpful for recognizing possible issues with the code. Is this possible, or will I need to switch to another IDE? I have seen that it is possible to see the variables while using the debugger function in PyCharm but when I run a simple couple of lines (shown below) through the debugger and look at the varibles I get this

    import numpy as np
    Dim = 11
    V = np.zeros(shape=(11,11))
    

    Workspace in PyCharm?

  • Peter Wood
    Peter Wood over 8 years
    Only if you've hit a break point.
  • Tim Seed
    Tim Seed over 8 years
    Yes - or if you are stepping through the code Debugging it.