This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 150008 - [65cat] Cannot step through debugging
Summary: [65cat] Cannot step through debugging
Status: RESOLVED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: jymen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-14 07:05 UTC by rajivderas
Modified: 2009-01-15 01:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file (162.57 KB, text/plain)
2008-10-14 07:05 UTC, rajivderas
Details
Sample project to debug (3.17 KB, application/x-compressed)
2008-10-17 12:19 UTC, rajivderas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rajivderas 2008-10-14 07:05:03 UTC
Using dev build 55 and tried to debug py project by setting a breakpoint but the debugger starts its debug shells but 
never reaches the debug point where it should become green.The debug session gets lost. I get the following error in 
the ide log due to this scenario:


[Fatal Error] :1:101: The value of attribute "name" associated with an element type "CALL" must not contain the '<' 
character.
org.netbeans.modules.python.debugger.backend.PythonDebugException: NBPython backend Parser parse  SAX PARSING ERROR : 
The value of attribute "name" associated with an element type "CALL" must not contain the '<' character.
****************** XML-SOURCE **********************
<JPY> <CALL cmd="4" fn="d:\65cat\tutorial reviews\newpythonproject2\src\newpythonproject2.py" name="<module>" 
args="None" /></JPY>
****************** END OF XML-SOURCE **********************
        at org.netbeans.modules.python.debugger.backend.JPyDebugXmlParser.parse(JPyDebugXmlParser.java:470)
        at org.netbeans.modules.python.debugger.backend.PythonDebugEvent.parse(PythonDebugEvent.java:111)
        at org.netbeans.modules.python.debugger.backend.PythonDebugEvent.<init>(PythonDebugEvent.java:161)
        at org.netbeans.modules.python.debugger.backend.PythonDebugClient.populateEvent(PythonDebugClient.java:168)
        at org.netbeans.modules.python.debugger.backend.PythonDebugClient.access$300(PythonDebugClient.java:21)
        at org.netbeans.modules.python.debugger.backend.PythonDebugClient$_TCP_TASK_.run(PythonDebugClient.java:142)
LINE entered : d:\65cat\tutorial reviews\newpythonproject2\src\newpythonproject2.py:2
java.lang.IllegalArgumentException: Called DataObject.find on null
        at org.openide.loaders.DataObject.find(DataObject.java:477)
        at org.netbeans.modules.python.debugger.Utils.getLine(Utils.java:176)
        at org.netbeans.modules.python.debugger.PythonDebugger.handleDebuggerEvent(PythonDebugger.java:457)
        at org.netbeans.modules.python.debugger.actions.JpyDbgView.newDebuggingEvent(JpyDbgView.java:114)
        at 
org.netbeans.modules.python.debugger.gui.PythonDebugContainer$_DEBUGEVENT_MANAGER_.populateToPlugin(PythonDebugContaine
r.java:661)
        at 
org.netbeans.modules.python.debugger.gui.PythonDebugContainer$_DEBUGEVENT_MANAGER_.populateLocalSource(PythonDebugConta
iner.java:676)
        at 
org.netbeans.modules.python.debugger.gui.PythonDebugContainer$_DEBUGEVENT_MANAGER_.startupSourceInit(PythonDebugContain
er.java:707)
        at 
org.netbeans.modules.python.debugger.gui.PythonDebugContainer$_DEBUGEVENT_MANAGER_.startDebugger(PythonDebugContainer.j
ava:730)
        at 
org.netbeans.modules.python.debugger.gui.PythonDebugContainer$_DEBUGEVENT_MANAGER_.newDebugEvent(PythonDebugContainer.j
ava:1039)
        at org.netbeans.modules.python.debugger.backend.PythonDebugClient.populateEvent(PythonDebugClient.java:169)
        at org.netbeans.modules.python.debugger.backend.PythonDebugClient.access$300(PythonDebugClient.java:21)
        at org.netbeans.modules.python.debugger.backend.PythonDebugClient$_TCP_TASK_.run(PythonDebugClient.java:142)
entering animation
Comment 1 rajivderas 2008-10-14 07:05:38 UTC
Created attachment 71725 [details]
log file
Comment 2 jymen 2008-10-17 09:32:03 UTC
the xml parsing problem should be fixed on last hudson builds.
can you provide and attach a sample for the never reached debugger point problem ?
Comment 3 rajivderas 2008-10-17 12:19:11 UTC
Created attachment 72108 [details]
Sample project to debug
Comment 4 rajivderas 2008-10-17 12:20:24 UTC
use build 55 to debug the sample project
Comment 5 jymen 2008-10-21 09:21:39 UTC
The actual varsion of the debugger is single threaded => will only debug the main tread of a python program.

The multi threading feature is in progress and should fix the problem you're faced with since the GUI action are handled
under the control of AWT threads which are not monitored with current version

I'll keep this ticket open until the multi threading feature is ready

Comment 6 rajivderas 2008-10-21 09:25:46 UTC
cool... thanks jymen
Comment 7 jymen 2008-10-28 08:33:51 UTC
the fix will be part of the multithreaded support extension which is in progress and planed for after the 65ea since the
multithreading support is a big change in the debugger backend code , I do not want to take the risk of having
regressions in the python65ea.
Comment 8 jymen 2009-01-07 09:53:54 UTC
starting with build #513 this feature is now operation with jython 2.2.1 ... some problem still remaining with jython
beta where some jython system libraries are in troubles when debugger traces are set ... I'll wait for jython 2.5 closer
to release to check that again