ruby/vscode-rdbg

Unable to set breakpoints in slim or haml files without "Allow Breakpoints Everywhere" enabled

rbclark opened this issue · 4 comments

First off, this extension is great and I've been really enjoying using it on all my Rails projects.

I've just run into one small problem, I am unable to place breakpoints in slim or haml files without enabling "Allow Breakpoints Everywhere" in my vscode settings. Debugging works properly once "Allow Breakpoints Everywhere" is set, it seems there is just a misconfiguration either in this package or in the slim & haml packages which is stopping this from working. From my research it looks like the same thing was happening with vscode-cpptools and they fixed it by adding "rust" to their language list.

ko1 commented

It is first time to see "Allow Breakpoints Everywhere" option.
Ah, I see so we need to add languages "slim" "haml" .... maybe on https://github.com/ruby/vscode-rdbg/blob/master/package.json#L43 ?
Do you know other languages we should support on?

@ko1 Yep that seemed to fix it! I put in a PR that adds slim and haml, I can't think of any other extension types that should be supported.

ko1 commented

.erb?

Interestingly, it seems that .erb is registered as a ruby format and therefore works without explicitly declaring it by default with only this extension installed in vscode. See screenshot below with a breakpoint set and only the vscode-rdbg extension installed.

Screen Shot 2022-10-05 at 10 20 34 AM