Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging issue with VS 2022 and .NET MAUI

Debugging the application ANDROID MAUI does not work correctly.

When I add breakpoints in the code and run debugging in my android app, I always get the following exception: "No compatible code running on the thread".

I have tried:

  1. Deactivate the hot reload
  2. Disable "Debug Your Code Only" in Options
  3. Reinstall VS 2022
  4. Reinstall MAUI

But I get always the same error.

Screenshot

like image 807
Boji Behija Avatar asked Sep 05 '25 14:09

Boji Behija


1 Answers

I was experiencing this issue with Visual Studio 2022 version 17.6.5. After upgrading to version 17.7.6 (current at time of writing) the issue vanished.

like image 68
DumbestGuyOnSaturn Avatar answered Sep 08 '25 04:09

DumbestGuyOnSaturn