-
I have two SPFx solutions. The first is upgraded from SPFx 1.10 to 1.16.1, the other solution is more or less a clone from The first solution (A) is debuggable in VS Code almost every time, following the recipe. By that I mean that breakpoints are bound in VS Code, as expected, and the webpack folder shows up in browser Inspector. Debugging procedure is roughly
The other solution (B) is debuggable only sometimes, in a seemingly random pattern. Breakpoints are unbound in 99/ 100 attempts. IMO I have exhausted the troubleshooting toolbox, including deleting and reinstalling Node.js (version 16.19). The solutions A and B are to my eye identical: same gulpfile
same package.json, same tsconfig etc. However, after countless troubleshooting cycles, deleting stuff, reinstalling, including the dev certificate, I noticed one difference between the solutions. Solution A: and solution B: Notice that for solution B, the Is the run watch the name of the main Gulp task, which the other subtasks belong to? What could prevent it from running in solution B? EDIT: The breakpoints bind when running solution A, even if the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I kind of solved the problem by doing another |
Beta Was this translation helpful? Give feedback.
I kind of solved the problem by doing another
git subtree split
from the original repo, andgit init new-repo
for starting anew. This means I have to re-implement changes and CI/CD pipelines for the new repo copy. The world moves on, but at least I would appreciate a hint towards what broke the debugging option on the first repo copy.