Netbeans中的Python调试

Netbeans中的Python调试,python,netbeans,Python,Netbeans,我在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

我在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 [日志]PythonDebugger:整体启动 >>>[LOG]PythonDebugger.taskStarted:我正在启动一个新的调试会话。。。 [LOG]此窗口是一个交互式调试上下文感知Python Shell [LOG]调试时可以在其中输入python控制台命令 >>>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在in=11111/out=11112上连接本地主机 错误:JPyDbg连接失败错误号(10061):连接被拒绝 调试会话正常结束 错误::调试对象的服务器套接字侦听已超时(等待时间超过20秒)java.net.SocketTimeoutException:接受超时
谢谢你的回答

我昨天刚安装了Python for NetBeans,还没有尝试过调试器,所以只是尝试了一下,我也遇到了同样的错误。所以我想可能是防火墙的问题,禁用了我的防火墙并重试,然后它工作了


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

对于Python,我喜欢Wingware中的WingIDE