SPFx breakpoints and debugging from Visual Studio ...
I am trying to find a way to debug my local SPFx workbench (react, typescript webpart) from Visual Studio Code instead from Chrome, but I could not find any guides on how to attach the Chrome to Visual Studio Code and hit a breakpoint. Are there any good guides on how to do it?
Re: RE: SPFx breakpoints and debugging from Visual...
I have copied the launch.json, from the office dev article and VSCode dubug against hosted workbench. I do however, see mimified code in an exeception related to React; even with my break point set in the Render method. Looking at 5 differences sharepoint debug release builds , Is the best approach to force a Debug release ?
Then package the the debug solution /temp/deploy ( ?????) and add to the app catalogue.
Thereafter, use Chrome-Dev tools debugger to see where the issue might be. In my case the web part works perfectly in Localhost workbench.
I know we need to be careful not bundle the map files etc in the final release.