Forum Discussion
Debugging SPFX Web Part With VS Code Issue.
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.
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