這應該是一個相當流行的問題,但Google和stackoverlow搜索都沒有幫助我。
我想在Netbeans 6.9.1中開發Python3程序。但是,當我創建項目,切換的Debug按鈕斷點,然後按我看到下面的輸出:Netbeans中的Python3項目調試6.9.1
[LOG]PythonDebugger : overall Starting
[LOG]PythonDebugger.taskStarted : I am Starting a new Debugging Session ...
[LOG]This window is an interactive debugging context aware Python Shell
[LOG]where you can enter python console commands while debugging
>>> File "/home/proger/.netbeans/6.9/config/nbPython/debug/nbpythondebug/jpydaemon.py", line 219
print self.debuggerFName
^
SyntaxError: invalid syntax
Debug session Abort =1
>>>
和下面的日誌窗口,我看到:
ERROR::Server Socket listen for debuggee has timed out(more than 20 seconds wait) java.net.SocketTimeoutException: Accept timed out
所以,如果我的理解對不對Netbeans的嘗試用Jython2.something調試器來調試Python3代碼。有沒有辦法連接正確的調試器?
語法錯誤出現 – 2011-01-30 17:27:02