in maui breakpoint is not working in vs code
in physical device
issue in ios
in maui breakpoint is not working in vs code
in physical device
issue in ios
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sangeetha SRank #212 · 11.4K reputationPosted Feb 12, 2025, 12:56 AM EST
If breakpoints are not working in .NET MAUI when using Visual Studio Code on a physical iOS device, there are a few potential reasons and solutions to consider. Here are some steps to troubleshoot and resolve the issue:
1. Check Your Environment
2. Use the Right Debug Configuration
launch.jsonconfiguration in the.vscodefolder.3. Ensure Proper Device Setup
4. Check iOS Deployment Target
5. Enable Debugging on iOS
6. Use the Right Debugger
launch.json. It should look something like this:{ \"version\": \"0.2.0\", \"configurations\": [ { \"name\": \".NET MAUI iOS\", \"type\": \"coreclr\", \"request\": \"launch\", \"preLaunchTask\": \"build\", \"program\": \"${workspaceFolder}\/bin\/iPhone\/Debug\/net6.0-ios\/YourAppName.app\/YourAppName\", \"args\": [], \"cwd\": \"${workspaceFolder}\", \"stopAtEntry\": false, \"serverReadyAction\": { \"action\": \"openExternally\", \"pattern\": \"\\\\bNow listening on:\\\\s+(https?:\/\/\\\\S+)\" }, \"env\": { \"ASPNETCORE_ENVIRONMENT\": \"Development\" }, \"sourceFileMap\": { \"\/Views\": \"${workspaceFolder}\/Views\", \"\/ViewModels\": \"${workspaceFolder}\/ViewModels\" } } ] }