0

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 command

  • install the SPFx Fast Serve Tool to speed up the serve operation

  • 2 things happen:

    1. 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
    2. 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.

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.

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
  • something like that, we activate this: https://github.com/microsoft/vscode-js-debug and that resolve our problem. thanks anyway – Luca Albanese Mar 16 '23 at 07:48

0 Answers0