在Netbeans中调试Python
我在Netbeans这个开发环境下调试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
谢谢你的回答
2 个回答
1
对于Python编程,我喜欢使用Wingware的WingIDE这个工具。
1
我昨天刚在NetBeans上安装了Python,还没试过调试器,今天试了一下,结果遇到了同样的错误。于是我想可能是防火墙的问题,就把防火墙关掉再试了一下,结果就好了。
不过我重新启动了防火墙,现在它还是能正常工作,所以我也不知道为什么。我看到NetBeans的Python选项里有个地方可以设置开始监听的端口(我的是29000,不是像你那样的11111)。