Reputation: 1241
When I run a Django project in debug mode with Eclipse (and PyDev plugin) it stops in all the breakpoints correctly and I can inspect all the values of the environment variables, but when I try to write whatever in the console I get this error and it doesn't print anything else:
[Invalid Frame]: Please select frame to connect the console.
Upvotes: 1
Views: 7304
Reputation: 11
I had a similar problem while running on Windows 7 with Eclipse, nano and Pydev 5.2.
PYTHONPATH
was set in Eclipse. But I expected that the variable was automatically set in the environment variables. But it's not the case.
I corrected it by following these steps:
Control Panel/All Control Panel Items/System/
.%PYTHONPATH%
and the value of e.g. E:\blender-2.77-windows64\doc\python_api\pypredef;
(Or where you have your python installation).PATH
variableUpvotes: 1
Reputation: 25332
Humm, turns out this was a bug when debugging multiple processes in PyDev. I just fixed it in https://github.com/fabioz/Pydev/commit/e13fd81fe87365be54aed8405741f84df90f2fca.
It should be released on PyDev 4.5.0. In the meanwhile, as a workaround to have a console with such a connection you can right-click the stack (in the debug view) and select PyDev > Debug Console -- by doing so, you'll have an interactive console with a proper connection to that frame.
Upvotes: 6