This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jaraco
Recipients jaraco
Date 2010-01-21.22:18:22
SpamBayes Score 2.9608645e-06
Marked as misclassified No
Message-id <1264112305.65.0.888456425139.issue7750@psf.upfronthosting.co.za>
In-reply-to
Content
Under Python 2.6.4 64-bit on Windows 7 64-bit, I found that when launching a script under the debugger, if backslashes were in the script pathname, they were not interpreted correctly by the interpreter.

For example, create a simple test script, "t-helloworld.py" with the canonical "hello-world" content. The script name must start with a backslash escape character such as 't' or 'n'. Then, from the command prompt:

> python -m pdb .\t-helloworld.py
IOError: (2, 'No such file or directory', '.\t-helloworld.py')
> <string>(1)<module>()
(Pdb)

However, using forward slashes works just fine.

> python -m pdb ./t-helloworld.py
> c:\debug\t-helloworld.py(1)<module>()
-> print "hello world"
(Pdb)

Note that launching the script from the python directly does not exhibit the error - it seems to be only when pdb is used.

Expected behavior: pdb should interpret the command-line parameters the same way Python does.
History
Date User Action Args
2010-01-21 22:18:25jaracosetrecipients: + jaraco
2010-01-21 22:18:25jaracosetmessageid: <1264112305.65.0.888456425139.issue7750@psf.upfronthosting.co.za>
2010-01-21 22:18:23jaracolinkissue7750 messages
2010-01-21 22:18:22jaracocreate