Comment 1 for bug 587868

Revision history for this message
Jason Spashett (jspashett) wrote :

Looking into it I find in get_unicode_argv

 # Skip the first argument, since we only care about parameters
        argv = _command_line_to_argv(command_line)[1:]

but the command line retunred from GetCommandLineW on windows, is:

unicode: C:\\Python26\\python.exe -u C:\\eclipse\\plugins\\org.python.pydev.debug_1.5.7.2010050621\\pysrc\\pydevd.py --vm_type python --client localhost --port 2134 --file C:\\bzr\\bazaar\\578005_no_revision_none\\bzr.py

under the debugger.

I'll check later how it works on other platforms. Perhaps pdb "fixes up the argv", but GetCommandLineW sidesteps the fix.

It makes no difference if I use eclipse or pdb straight.