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 186827 - Debugger's shell window doesn't work
Summary: Debugger's shell window doesn't work
Status: RESOLVED DUPLICATE of bug 196842
Alias: None
Product: python
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: jymen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-27 16:05 UTC by dnikitin
Modified: 2011-03-31 11:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dnikitin 2010-05-27 16:05:05 UTC
Product Version: NetBeans IDE 6.9 RC1 (Build 201005242201)
Java: 1.6.0_17; Java HotSpot(TM) Client VM 14.3-b01
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)
Userdir: C:\Documents and Settings\Administrator\.netbeans\6.9rc1
--------------------------------------------------------------------

-- Create default Python project
-- press 'Debug Main Project' button on tool-bar
=> 
Debugger's shell window appears, but shows the error:

[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\administrator\.netbeans\6.9rc1\config\nbpython\debug\nbpythondebug\jpydaemon.py
args =  ['C:\\Documents and Settings\\Administrator\\.netbeans\\6.9rc1\\config\\nbPython\\debug\\nbpythondebug\\jpydaemon.py', 'localhost', '29100']
localDebuggee= None
JPyDbg connecting  localhost  on in=  29100 /out= 29101
JPyDbgI0001 : connected to  localhost
Exception in thread MainThread:Traceback (most recent call last):
  File "C:\hudson\workspace\win-xp-cygwin\netbeans-7.0\python\jython-2.5.1\Lib\threading.py", line 178, in _Thread__bootstrap
    self.run()
  File "C:\Documents and Settings\Administrator\.netbeans\6.9rc1\config\nbPython\debug\nbpythondebug\jpydaemon.py", line 593, in run
    exec self._cmd in self._myglobals,self._mylocals
  File "<string>", line 1, in <module>
  File "C:/working/dn156283/tmp/NewPythonProject2/src/newpythonproject2.py", line 4, in <module>
    __author__="Administrator"
  File "C:\Documents and Settings\Administrator\.netbeans\6.9rc1\config\nbPython\debug\nbpythondebug\jpydaemon.py", line 727, in trace_dispatch
    self.dispatchLineAndBreak(mainDebugger, frame , lthread )
  File "C:\Documents and Settings\Administrator\.netbeans\6.9rc1\config\nbPython\debug\nbpythondebug\jpydaemon.py", line 607, in dispatchLineAndBreak
    lthread.additionalInfo.breakHere(frame,lthread)
  File "C:\Documents and Settings\Administrator\.netbeans\6.9rc1\config\nbPython\debug\nbpythondebug\jpydaemon.py", line 813, in breakHere
    while ( self.dbg.parseSubCommand(  self.dbg._connection.getNextDebuggerCommand() , frame , lthread ) == FREEZE ):
  File "C:\Documents and Settings\Administrator\.netbeans\6.9rc1\config\nbPython\debug\nbpythondebug\jpydaemon.py", line 813, in breakHere
    while ( self.dbg.parseSubCommand(  self.dbg._connection.getNextDebuggerCommand() , frame , lthread ) == FREEZE ):
  File "C:\Documents and Settings\Administrator\.netbeans\6.9rc1\config\nbPython\debug\nbpythondebug\jpydaemon.py", line 1450, in parseSubCommand
    temp = int(temp)
ValueError: invalid literal for int() with base 10: Settings\Administrator\My
Debug session normal end
Comment 1 bveldkamp 2010-11-24 08:06:40 UTC
This seems to be related to spaces in the path "C:\Documents and Settings". I worked around this by creating a substitute drive letter, e.g. "subst U: %userprofile%" and then starting netbeans.exe with the "--userdir U:\" parameter. 

The drawback is that I somehow lost all my configuration settings, so I hope this can be resolved soon.
Comment 2 nerdfever 2011-02-15 15:23:19 UTC
The workaround given about didn't work for me on Win7 x64.

However, the following workaround does:

subst u: c:\Users\Dave
subst y: e:\Users\Dave\Documents\My Data\My Code\Python
netbeans --userdir u:

The first line (U:) sets up a path to the user directory without any spaces.

The second line (Y:) sets up a path to the project folder(s) without any spaces.

--Dave  http://nerdfever.com
Comment 3 kenorb 2011-03-31 11:14:06 UTC

*** This bug has been marked as a duplicate of bug 196842 ***