Forum Discussion
Dave Walker
Oct 29, 2018Copper Contributor
Debugging SPFX Web Part With VS Code Issue.
Hi there, I'm new to SPFX development and I'm attempting to debug using VS Code, but it's not working. I'm following the MS documentation as well as the PnP guidance. Here's the steps I'm following a...
Phil Harding
Oct 30, 2018Copper Contributor
The problem seems to be that the "gulp serve --nobrowser" task doesn't create the contents of the "workbench-packages" folder, like the "gulp serve" task does.
Dave Walker
Oct 30, 2018Copper Contributor
Hi Phil, so I tried "gulp serve" from the terminal instead of "gulp server --nobrowser" so that the packages load. Gulp serve opens a workbench instance which I close. I then start the debugger which brings up a new workbench instance. I drop the web part on the page and hit refresh, but the break point doesn't activate. Any ideas?
Dave
- Phil HardingOct 30, 2018Copper Contributor
Exactly what I tried with the same results, also tried the same steps as yourself :-(
- Dave WalkerOct 30, 2018Copper Contributor
Thanks for confirming Phil. I've tried this in a couple of environments with the same results. It's clear now that they've changed something without updating the documentation.
- Phil HardingNov 27, 2018Copper Contributor
See Andrew Connells reply for the fix to this issue;
https://github.com/SharePoint/sp-dev-docs/issues/2831#issuecomment-441995248