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.
Looking into it I find in get_unicode_argv
# Skip the first argument, since we only care about parameters line_to_ argv(command_ line)[1: ]
argv = _command_
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.201005062 1\\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.