Skip to content

vsdbg quits when resuming from a breakpoint if stepping over a line that throws an exception  #95189

Closed
@dcpower0

Description

@dcpower0

Description

I noticed some odd behavior with how vsdbg v17.0.10712.2 behaves when running after stopping on a breakpoint on a line that will throw an exception. I am using dotnet 6.0.11.

If I stop at a breakpoint on a line that will throw a null reference exception, the debugger halts as expected. If I then try to step, the program quits. If I were to run, the program executes as expected.

Reproduction Steps

            try
            {
                string a = null;
                a.Trim();
            }
            catch 
            {
            
            }

Put a breakpoint on a.Trim();
Run the debugger on this code. Then step. Program quits.
Run the debugger on this code. Then run. Program proceeds.
Run the debugger on this code without a breakpoint. The debugger halts, if you've elected to stop on first-chance exceptions, but runs fine if you step or run after.

Expected behavior

Program should not quit when attempting to resume from a breakpoint, on a line with a null reference exception.

Actual behavior

Program crashes when attempting to resume from a breakpoint by stepping over a line with a null reference exception.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

Labels

arch-arm64area-Diagnostics-coreclrin-prThere is an active PR which will close this issue when it is mergedos-linuxLinux OS (any supported distro)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions