realgud
seems to want to guess the path of the second argument of the command supplied to M-x pdb
(or M-x realgud:pdb
). When I'm visiting a buffer in /some/path/foo.py, without realgud:
(hiding the long docker command here -- the ... should be understood to mean the rest of the middle of that long command)
M-x pdb
Run pdb (like this): docker run ... some_test
# Command supplied is run
with realgud:
M-x pdb
Run pdb (like this): docker run ... some_test
# Output:
Current directory: /some/path/
Command: docker /some/path/run ... some_test
docker: '/some/path/run' is not a docker command.
See 'docker --help'.
Process pdb exited abnormally with code 127
That of course immediately fails, because run
here is not the path of some program, but an argument to docker
. Why does realgud think it knows this, and how can I prevent it from doing that?
realgud:trepan2 doesn't suffer from this problem, and neither does plain old M-x pdb
when realgud is not installed, so it seems it's not fundamantal.