-
-
Notifications
You must be signed in to change notification settings - Fork 84
Description
Tool
Visual Studio extension
Description
Unable to debug in VS2022 using nanoFramework per the instructions here: Getting Started Guide for managed code (C#) | .NET nanoFramework Documentation
I am able to use nanoff to flash the board so that it shows up on the Devices window, but unable to debug on the board, even using the template console app which doesn't talk to the hardware itself. More specifically, when I start the debugging session in VS 2022, the output log indicates that the assemblies are deployed to the board but afterward the debugging session immediately ends - no breakpoints are hit. After that, the board no longer appears in the nanoFramework Extension's Devices list.
How to reproduce
- Verify that both of the board's USB ports are connected to the computer and that the board is visible in the Windows Device Manager on one of the COM ports.
- In the developer command prompt, flash the board using nanoff, specifying the appropriate target for STM32F429I Discovery.
- Create a new console application from nanoFramework Extension template.
- Verify that the board is listed in the Devices window in VS2022.
- Set a breakpoint on the first line of code in the Main routine and click the green button to start a debugging session.
- Problematic behavior is that the breakpoint is not hit and the debugging session thread ends
- Further, the board is no longer visible in the Devices list in VS2022 and needs to be re-flashed.
Expected behaviour
Breakpoint should have been hit.
Screenshots
No response
Aditional context
Windows 10
Visual Studio 2022
nanoFramework extension
Target STM32F429I Discovery