emacs-lsp / dap-mode

Emacs :heart: Debug Adapter Protocol
https://emacs-lsp.github.io/dap-mode
GNU General Public License v3.0
1.3k stars 181 forks source link

Filename passed as argument when launching module in Python #801

Open zjp opened 2 months ago

zjp commented 2 months ago

Possibly related to #798

I'm working on a GUI program that can take in files as arguments, and when I launch its module I can see that it always gets a list of some of the buffers I have open, I think any buffer I've had focused while launching the debugger. It would be nice if this could be avoided with a configuration option.

zjp commented 2 months ago

I found that if I took (buffer-file-name) out of the list of possibilities for program here:

https://github.com/emacs-lsp/dap-mode/blob/496dd3a60f71a396df7e9a5ff6c500127d00ec03/dap-python.el#L174

I could launch my program without error or passed in filenames.