I was using Visual Studio Code correctly until yesterday to create and debug my SPFx webparts. Today it seems to stop working correctly in debug mode. It happens every time, but let's take this simple example:
Created a new webpart with the
yo @microsoft/sharepoint
commandinstall the SPFx Fast Serve Tool to speed up the serve operation
2 things happen:
- If I launch
npm run serve
and launch next the debug mode without any breakpoint attached, the browser (Chrome or Edge, it's the same) lands correctly in the login page of sharepoint online - If I launch
npm run serve
and launch next the debug mode with a single breakpoint in any part of the code, the browser remains stuck in loading without landing in the login page.
- If I launch
I tried to completely uninstall VS Code (following these steps), reinstall VS Code from scratch, and the result is the same.
I can't debug in any way possible but the most absurd thing is that running webparts without debugging and checking them in the workbench or directly in a sharepoint page (after gulp bundle & gulp package-solution operations), they work correctly, but I can't debug.