Hi @Antonio Moscati , thank you for reaching out on Microsoft Q&A!
Starting with recent versions of Visual Studio 2022 (17.14+), a new “.NET Mono Debugger for MAUI apps” was introduced as a preview feature. On physical Android devices this debugger currently fails to attach correctly: the app deploys and starts, but the vsdbg
session terminates immediately, which is the error you’re seeing.
There is a related case that you can follow here
Unfortunately, there is no solution for this issue at the moment. However, you can quickly fix this by turn this preview feature off by go to Tools → Options → Environment → Preview Features and uncheck “.NET Mono debugger for MAUI apps”. After restarting Visual Studio, debugging on a physical device should work again.
I hope this helps you get things back on track quickly! If my suggestions can solve your issue, feel free to interact with the system accordingly!
Thank you!