daveleroy / SublimeDebugger

Graphical Debugger for Sublime Text for debuggers that support the debug adapter protocol
MIT License
369 stars 42 forks source link

Unable to support two or more ${} in one line #215

Closed ScreeperC closed 7 months ago

ScreeperC commented 1 year ago

I want to debug my C++ program with LLDB/GDB, but unfortunately it doesn't works when i finish the setup and the bug report is as follows QQ截图20230405194250

daveleroy commented 1 year ago

The code for this is here if you want to fix this https://github.com/daveleroy/sublime_debugger/blob/7c88fa6402e154f41e4db1075bd336bc539b035f/modules/dap/configuration.py#L205

or wait until I get around to it

dongguaguaguagua commented 1 year ago

Sublime Text/Packages/Debugger/modules/dap/configuration.py, change the regular expression on line 207 from (\${(.*)}) to (\${(\w+)}) to fix it.

daveleroy commented 7 months ago

Fixed here https://github.com/daveleroy/SublimeDebugger/commit/f07ac3607e68e0c1782009481fed642dad18a8bf