PyCharm debug console with SSH
When I try to use the console in debug mode on PyCharm with a remote SSH interpreter I get an error:
>>>x=1
Traceback (most recent call last):
File "/ATS/RobHome/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1418, in do_it
result = pydevconsole.console_exec(self.thread_id, self.frame_id, self.expression, dbg)
File "/ATS/RobHome/.pycharm_helpers/pydev/pydevconsole.py", line 483, in console_exec
need_more = exec_code(CodeFragment(expression), updated_globals, frame.f_locals, dbg)
File "/ATS/RobHome/.pycharm_helpers/pydev/pydevconsole.py", line 400, in exec_code
interpreterInterface.interpreter.update(globals, locals)
File "/ATS/RobHome/.pycharm_helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 346, in update
self.ipython.history_manager.save_thread.pydev_do_not_trace = True #don't trace ipython history saving thread
AttributeError: 'NoneType' object has no attribute 'pydev_do_not_trace'
This error message comes up whether I reference an active variable at the debug point, or if I do something simple like ">>>x = 1"
I do not get this issue if I debug using a local interpreter running the same version of Python.
I was wondering if there are settings in the debugger that have to be modified in order to allow the debug console to be used. In the Debugger settings under "Built-in server" settings I enabled "Can accept external connections" and "Allow unsigned requests", but still no luck.
Any thoughts, is this something that anyone else has seen? Any advice or insight much appreciated, thanks.
请先登录再写评论。
Hi Rlvlach! Which version of PyCharm is this?
having the same issue with 2017.3 (pro) (#PY-173.3727.137) with Python 2.7.14 in a vagrant/virtualbox vm.
the exception appears for any console input at the breakpoint. making it practically useless.
i tried deleting the remote interpreter and recreating it (incl. deleting pycharm helpers in remote ~/)
The version was PyCharm Professional v2017.3
I am on Windows 7, and Python is Anaconda version 2.7.13
It looks like Python without SQLite is affected, relevant ticket: https://youtrack.jetbrains.com/issue/PY-27270
Does that mean if you install the SQLite plug-in, the problem is resolved?
Rlvlach, I believe SQLite is in the standard library, and one can't install it from `pypi`. You have to use a different Python interpreter which was compiled with SQLite in the first place. E.g., installed through `pyenv` or downloaded from python.org
I'm having the same issue. My PyCharm version is 2018.1 Professional. The python binary I'm using is inside a virtual environment on the server, if it helps. Is there a fix for this?