Debugging a Python3 project in Netbeans 6.9.1

This should be a pretty popular issue, but neither Google nor stackoverlow search helped me with it.
I want to develop Python3 programs in Netbeans 6.9.1. But when I create the project, switch the breakpoint and click the Debug button, I see the following output:

[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
>>>

And below the log window I see:

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

So, if I understand correctly, Netbeans is trying to debug Python3 code using Jython2.something debugger. Is there a way to attach the correct debugger?

+3
source share
2 answers

, Netbeans, , Python 3 Python 2. , Netbeans Python , , , , IDE netbeans.

debugserver (jpydaemon.py), , Python 3, , .

, - Jython. , -, Jython, jpydaemon.py, Jython Python 3, , Python 3 Jython, , .:-)

: jpydaemon.py, , . jpydaemon , sys.settrace(). , , , : jpydaemon.py Python 3, Netbeans Python 3.

+2

NetBeans. , jpydaemon.py 219

print self.debuggerFName 
==>
print(self.debuggerFName)

NetBeans, .

+3

Source: https://habr.com/ru/post/1788825/


All Articles