Skip to content

Default suggested command does not always work #298

@mnalli

Description

@mnalli

If I call for instance realgud:pdb on a on a python file that contains spaces in the name, the suggested command line to execute is similar to the following: python -m pdb /absolute/path/this\ is\ a\ test.py.

The debugger exits immediately with an error, printing the following lines:

Making font-lock-breakpoint-keywords buffer-local while locally let-bound!
using pdb mode map
Making kill-buffer-hook buffer-local while locally let-bound!
That’s all folks.... exited abnormally with code 1

The debugger starts correctly if I manually change the suggested line adding quotes this way: python -m pdb "/absolute/path/is a test.py"

Is there a way to change the default suggestion so that I don't have to manually change it every time?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions