Debugger "Unable to display frame variables"

When I try to run any unit test in the Openstack nova project[1] and reach a breakpoint, the debugger says "Unable to display frame variables", and I am unable to inspect any variables. I picked Nosetests as the runner since none of the others seem to work at all.

[1] https://github.com/openstack/nova
8 comments
Hi Henry,

As I see from requirements.txt this project is using Eventlet.
Please try to enable Gevent support: http://blog.jetbrains.com/pycharm/2012/08/gevent-debug-support/.
Please try to run tests not using eventlet.monkey_patch().
Does it work for you?
0
I tried both (using Gevent support and commented all places with eventlet.monkey_patch). It doesn't work for me.
I have started debug server, then I put in one of my unittest:

import pydevd
pydevd.settrace('172.18.36.179', port=1234,stdoutToServer=True, stderrToServer=True, suspend=False)

After that i put breakpoint in same test. And runned tests:
testr run

Breakpoint has been reached. I can select Frame in Debugger, but I have same problem as Henry had: "Unable to display frame variables"

I'm using PyCharm 4.0
0
Dmitry, i think, that my problem is diffrent from the one in your link. Debugger stops on all breakpoints, but doesn't show values of variables in any frame
0
I am unable to inspect any variables. I picked Nosetests as the runner since none of the others seem to work at all.
0
I am having this same problem. Breakpoints are hit, but no variables. I have tried disabling and enabling gevent to no avail. I am using pycharm 3.4.1. Regarding monkey_patching, I cannot find any calls to "eventlet.monkey_patching()" in my project. I am trying to debug "bang" which uses nova and multiprocessing: https://github.com/fr33jc/bang

Thanks for any help!
0

+1 For basic code like so, these errors:

0

Please sign in to leave a comment.