Jython 2.7.0跳转命令不起作用

时间:2016-05-04 12:50:04

标签: java command jython typeerror pdb

我试图执行pdb lib的“jump”命令。我正在使用Jython(在Java应用程序中)。命令附带此错误:

    Traceback (most recent call last):
  File "C:\pdb_jump.py", line 20, in <module>
    result = []
  File "C:\jython\Lib\bdb.py", line 49, in trace_dispatch
    return self.dispatch_line(frame)
  File "C:\jython\Lib\bdb.py", line 67, in dispatch_line
    self.user_line(frame)
  File "C:\jython\Lib\pdb.py", line 158, in user_line
    self.interaction(frame, None)
  File "C:\jython\Lib\pdb.py", line 210, in interaction
    self.cmdloop()
  File "C:\jython\Lib\cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "C:\jython\Lib\pdb.py", line 279, in onecmd
    return cmd.Cmd.onecmd(self, line)
  File "C:\jython\Lib\cmd.py", line 221, in onecmd
    return func(arg)
  File "C:\jython\Lib\pdb.py", line 705, in do_jump
    self.curframe.f_lineno = arg
  File "C:\jython\Lib\pdb.py", line 705, in do_jump
    self.curframe.f_lineno = arg
TypeError: readonly attribute

似乎“跳转”命令不起作用。 arg类型是整数,此值不能设置为“self.curframe.f_lineno”。我该怎么办?有什么建议吗?

Java版本:1.8 64位,Jython versin:2.7

0 个答案:

没有答案