Netbeans中的Python调试

我在Netbeans IDE下调试
Python程序时遇到问题.当我开始调试时,调试器会写入以下日志和错误.谢谢你的帮助.

[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
>>>c:\documents and settings\aster\.netbeans\6.7\config\nbpython\debug\nbpythondebug\jpydaemon.py
args = ['C:\\Documents and Settings\\aster\\.netbeans\\6.7\\config\\nbPython\\debug\\nbpythondebug\\jpydaemon.py', 'localhost', '11111']
localDebuggee= None
JPyDbg connecting localhost on in= 11111 /out= 11112
ERROR:JPyDbg connection failed errno(10061) : Connection refused
Debug session normal end

ERROR :: Server Socket listen for debuggee has timed out (more than 20 seconds wait) java.net.SocketTimeoutException: Accept timed out

谢谢你的回答

最佳答案 我昨天刚刚安装了Python for NetBeans并且没有尝试过调试器,所以只是试了一下,我得到了同样的错误.所以我想也许这是一个防火墙问题,禁用我的防火墙并重试它,然后它工作.

但是我重新启动了防火墙,现在它仍在工作,所以我不知道.我看到Python的Netbeans选项有一个输入来指定开始的监听端口(我的是29000而不是像你的11111).

点赞