Description
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