dotnet/vscode-csharp

VS Code extension: Add support for Function Breakpoints

dougbu opened this issue ยท 7 comments

The VS Code "function breakpoints" feature does not seem to work when using the OmniSharp-based C# extension (v1.0.5-rc2). Or, if the feature works, the obvious syntax doesn't. This might be a fine feature gap except the failure is silent -- no warning is shown that the enabled breakpoint is invalid. For example none of the Main breakpoints are hit with the setup below. Same thing goes for non-static methods.
main

I opened #296 to track the lack of warning. We can use this to track the feature request for function breakpoint support.

๐Ÿ‘ wfm

Any updates on this functionality? I'm curious and might try my hand at it. How difficult would it be to implement this functionality as a first time contributor?

@loligans [Sorry for the delay, I am returning from parental leave] the debug adapter used by this extension isn't open source, and this feature can't really be implemented outside of it. So this can only be implemented by a Microsoft engineer.

I just ran into this issue. Super annoying if I want to break on a function that isn't my own as well like you can in WinDbg.

Fixed by #4091

Thanks @WardenGnaw and @gregg-miskellyโ•