xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] Debugger error when expanding a property view and problem when debugging async method #7432

Closed silviubogan closed 5 years ago

silviubogan commented 5 years ago

Description

I am sorry I did not break this issue into pieces, but I am not sure how the error messages are related to each other. I hope this is not a security vulnerability

Steps to Reproduce

  1. Clone the repo at the end of this issue

  2. Put the told breakpoint

  3. Try to step in two times or step over that line (wait 5 seconds after launching the app on the device, then it will get you to that line)

  4. The program reenters the run mode

  5. Repeat the steps 1-3 and test this: everything I enter in the Immediate Window, including "1+1", results in reentering the run mode sometimes without any message or visible error. The error in the first screenshot (the big one) appeared when I was trying to expand a property view in the debugger with the Parallel Stacks window open. If I close the Parallel Stacks window:

    1. The Immediate Window works well in the same situation (the same LOC and moment in the program's progress) for 1+1 (shows 0x0002).
    2. But I cannot step in or over the line BackView.IsVisible = true;, it behaves just like I am pressing the Continue button.

Expected Behavior

To be able to step over that LOC. To not enter automatically in the run mode. The error message to not be necessary (not shown, and not needed).

Actual Behavior

The error in the screenshot is shown.

Basic Information

Screenshots

2019-09-07_11-50-36 - Copie

Another screenshot

devenv_2019-09-07_12-43-07

Immediately after that, this:

2 devenv_2019-09-07_12-43-43

Then, after pressing Continue (pressing again shows this message again):

3 devenv_2019-09-07_12-44-21

After a period of time, in which I deleted some files and code to create a test case, I get this error when trying to step over that line:

4 devenv_2019-09-07_13-14-05

Reproduction Link

This repo reproduces just a part of the issues presented above: when placing a breakpoint on the line 133 in the FlipFromFrontToBack async method inside FlipView.cs, when the breakpoint is first hit, and I press Step In or Step Over, the program enters the run mode again, just like if I press pressing Continue. Sometimes an error window appears similar to the last one inserted above.

I hope I helped somehow.

Thank you.

samhouts commented 5 years ago

@silviubogan Please report this issue directly from Visual Studio using Help >> Send Feedback. Thank you!