小编Ant*_*mik的帖子

使用调试控制台时出错:DeprecationWarning:自 IPython 6.0 起,`use_readline` 参数已被弃用并被忽略

我的 Pycharm 调试控制台有问题。这是我一步一步执行的操作:我在代码中的某个位置设置了一个断点,当代码停在该断点时,我按照此处所述打开调试控制台。这是提示:

>>> 
Run Code Online (Sandbox Code Playgroud)

然后我尝试做一些基本的事情,例如a = 1,但我收到 此错误消息(屏幕截图)。作为复制粘贴:

Traceback (most recent call last):
  File "C:\dev\PyCharm Community Edition 2018.1\helpers\pydev\pydevconsole.py", line 362, in get_interpreter
    interpreterInterface = getattr(__builtin__, 'interpreter')
AttributeError: module 'builtins' has no attribute 'interpreter'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "C:\dev\PyCharm Community Edition 2018.1\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 1443, in do_it
    result = pydevconsole.console_exec(self.thread_id, self.frame_id, self.expression, dbg)
  File "C:\dev\PyCharm Community Edition 2018.1\helpers\pydev\pydevconsole.py", line 467, in console_exec
    need_more =  exec_code(CodeFragment(expression), updated_globals, …
Run Code Online (Sandbox Code Playgroud)

python debugging console pycharm

5
推荐指数
1
解决办法
1983
查看次数

标签 统计

console ×1

debugging ×1

pycharm ×1

python ×1