Skip to content

[Bug] Breakpoints when debugging always point to external code #2699

@AustinEnos95

Description

@AustinEnos95

Description

I have been working on a MAUI android application and whenever I boot up in debug mode and interact in a way that would trigger a breakpoint to be hit, I just hit a break, but not in the code, it always comes up with
'Your app has entered a break state, but there is no code to show because all threads were executing external code (typically system or framework code)."

I've checked all the debug settings and everything seems to be setup correctly.

Steps to Reproduce

  1. With your MAUI application set to debug mode, using either an emulator or physical device, start the application.
  2. Interact with the application to trigger a breakpoint you have set.
  3. The message seen above will display ^.

Expected Behavior

I should hit a breakpoint in my code so that I can step debug.

Actual Behavior

Breakpoints claim to be pointing to external code.

Basic Information

  • Version with issue:
  • Last known good version:
  • IDE: VS 2022 Preview
  • Platform Target Frameworks:
    • net6.0-ios;
    • net6.0-android;
    • net6.0-maccatalyst
  • iOS:
  • Android:
  • UWP:
  • Android Support Library Version:
  • Nuget Packages: N/A
  • Affected Devices:
    • Pixel 2 Pie 9.0 - API 28 Android Emulator
    • Galaxy S21 Ultra Physical device.

Screenshots

Reproduction Link

Workaround

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-toolingXAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debuggings/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions