Variables pane empty, Won't monitor manually
I'm using Pycharm 2019.2.3. Ubuntu 18.04.2 LTS. It's installed in ./opt using the downloadable binaries. My project is pure python with the 3.6 interpreter. When I run my program in debug, I can't figure out how to get the variables to appear.
My code is just importing pandas and setting a simple data frame:
import pandas
foo = pandas.DataFrame({'foo':[1,2,3],'bar':[1,5,7]})
When I try to set a watch for the variable foo, I get this:
foo = {NameError} name 'foo' is not defined
Please sign in to leave a comment.
Hello,
I assume a breakpoint was set to
foo = pandas.DataFrame({'foo':[1,2,3],'bar':[1,5,7]}), however this line is not executed yet.Please add the third line like:
import pandas
foo = pandas.DataFrame({'foo':[1,2,3],'bar':[1,5,7]})
print(foo) #set a breakpoint here and try to debug again.