svaante / dape

Debug Adapter Protocol for Emacs
GNU General Public License v3.0
501 stars 34 forks source link

[Feature request] Shell expansion in "args" #162

Closed ktrarai closed 1 month ago

ktrarai commented 1 month ago

debugpy and VS Code support "Shell expansion" if "args" is not an array but a string:

https://github.com/microsoft/vscode-python-debugger/issues/309#issuecomment-2048181290

But I've got this message with a option :args "<in.txt" for Dape:

* Invalid message: Shell expansion in "args" is not supported by the client *

I will appreciate this feature would be supported.

By the way, now I insert a code like the following in a debuggee python source to redirect to a file:

import sys
sys.stdin = open('in.txt', 'r')

This is inconvenient. Is there a way without having to edit the debuggee?

Thanks.

svaante commented 1 month ago

Hey, have not tested extensively but with commit referenced above it should work for debugpy, note that you have to use dape from master until a new version is released.

Please reopen the issue if it doesn't work for you!