-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breakpoint behaviours odd for local function #1678
Comments
Also I noticed the feature |
I think I know what is happening - that line will actually be in two functions according to the debug info -- the inner function and the outer function. I believe vsdbg is actually setting the breakpoint in both places, but it is only reporting the breaking in the outer function to the UI. The result is that the breakpoint will really be set in both spots, but there will be no indicator for the first spot, and the breakpoint will appear to move (and really will move after we restart debugging). We should be able to tweak our logic to prefer the inner function as a better match. |
I have a fix for the debugger issue. @DustinCampbell should @cateyes99 open a separate issue for the completion issue (see his second comment), or is that already tracked somewhere else? |
We need a separate issue for that. |
This includes the following changes: 1. Run the debugger on .NET Core 2.0 RTW (instead of preview2) 2. Breakpoint binding disambiguation fix (dotnet#1678) 3. Sending 'process' event (requested by VS For Mac team) 4. Entry point event stopping reason
This includes the following changes: 1. Run the debugger on .NET Core 2.0 RTW (instead of preview2) 2. Breakpoint binding disambiguation fix (dotnet#1678) 3. Sending 'process' event (requested by VS For Mac team) 4. Entry point event stopping reason
@cateyes99 if you wouldn't mind please create a new bug for the parameter hints issue. |
* Update debugger to 1.13.0 package This includes the following changes: 1. Run the debugger on .NET Core 2.0 RTW (instead of preview2) 2. Breakpoint binding disambiguation fix (#1678) 3. Sending 'process' event (requested by VS For Mac team) 4. Entry point event stopping reason * Update changelog for Debugger 1.13.0
@gregg-miskelly a new issue #1715 created as per u ask. cheers |
Environment data
dotnet --info
output:VS Code version:
1.14.2
C# Extension version:
1.11.0
Steps to reproduce
I have the below piece of code, and set up breakpoints at Line 12, 14.
After running and debugging it as shown below, the breakpoints at Line 14 automatically moves to Line 18! If i hit F5, it does break at Line 14 though, but note: now during debugging, I cannot set up any breakpoint in the
local function
as usual, for example at Line 15! Outside thelocal function
I can set up breakpoints as usual.After finishing debugging, the breakpoint setup previous at Line 14 won't come back, instead stay at Line 18 as shown below. So next time, if I re-run and debug it, it won't break at Line 14 any more!
Expected behavior
Breakpoints setup in
local functions
before debugging shouldn't be moved outside it after starting debugging.During debugging, should be able to set up breakpoints for the statements in
local functions
Actual behavior
Very odd
The text was updated successfully, but these errors were encountered: