pydev调试器在breakpoint上给出错误

2024-10-02 22:35:42 发布

您现在位置:Python中文网/ 问答频道 /正文

当运行端到端测试时,只有当执行在断点处停止时才会出现以下错误。我恢复考试后,考试确实通过了。如果我没有设置断点,那么测试也会通过。我猜这和intellij和pydev设置有关。在

Traceback (most recent call last):
  File "C:\Users\ckhanna\.IdeaIC2016.3\config\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_vars.py", line 354, in evaluate_expression
    compiled = compile(expression, '<string>', 'eval')
  File "<string>", line 1
    args.0
         ^
SyntaxError: unexpected EOF while parsing

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ckhanna\.IdeaIC2016.3\config\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 1125, in do_it
    result = pydevd_vars.evaluate_expression(self.thread_id, self.frame_id, self.expression, self.doExec)
  File "C:\Users\ckhanna\.IdeaIC2016.3\config\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_vars.py", line 356, in evaluate_expression
    Exec(expression, updated_globals, frame.f_locals)
  File "C:\Users\ckhanna\.IdeaIC2016.3\config\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_exec2.py", line 3, in Exec
    exec(exp, global_vars, local_vars)
  File "<string>", line 1
    args.0
         ^
SyntaxError: invalid syntax
NameError: name '__py_debug_temp_var_1721695151' is not defined

Tags: inpyselfconfiglinepluginsvarsusers