Skip to content Skip to sidebar Skip to footer

Unable To Get Netbeans Debugger Working For Python

Ubuntu 9.10 Netbeans 6.7.1 Whenever I start the debugger it crashes out with the error below. I've set the project properties to the correct version of python, although it doesn't

Solution 1:

I've experienced some issues with the Netbeans Python debugger as well. Python support in Netbeans is not yet perfect and does not come anywhere near to Java Netbeans peformance and support.

You could try checking python platforms in Tools -> Python Platforms; try removing and readding the interpreter, thus forcing library reloading.

Also, try removing the __ author __ line which seems to confuse the debugger, and remember that usually the Netbeans debugger sets an "automatic breakpoint" at the first possible line in the script, and this sometimes led me to think it was "hung" while it was just waiting for me to tell it to continue.

If you just need a debugger, and you don't strictly need to use Netbeans, I'd advise you to try Winpdb (standalone crossplatform debugger, despite the name), which works very good even tough it doesn't support watches and requires a minimum of tinkering with PYTHONPATH in order to run your projects; or you could use Eclipse+Pydev; while I'm not a huge Eclipse fan, I think the Pydev its debugger simply works great.

Commercial IDEs support other debuggers, but I think they'd be out of the scope of your question.

Solution 2:

Somebody has mentioned that spaces in project path cause this error (for me with Kubuntu 13.10 and Netbeans 7.4 the problem persisted after eliminatin spaces from the path, however)

https://netbeans.org/bugzilla/show_bug.cgi?id=196842

Solution 3:

possibly you used spaces in the path of your file (happenned to me)

https://netbeans.org/bugzilla/show_bug.cgi?id=175116

Solution 4:

I had this same problem today. Renaming the folder my code was in to have no spaces didn't help. The parent folder was the only folder in the code's file path that had spaces in it.

The only thing that worked for me was to make a new folder with the correct name (without spaces) and move all my code into that. Once I did this, debugging was then possible.

Post a Comment for "Unable To Get Netbeans Debugger Working For Python"