I would like to set debug breakpoints in my javascript source files in VS Code. When I launch the debugger, the breakpoints aren’t recognized. I can see the compiled files in the Loaded Scripts panel and set breakpoints in them, but not in the source files. I see that the sourceURL in the compiled files is like webpack://@roots/bud/sage/./scripts/app.js. Do I need to adjust my VS Code launch configuration to support this source map? Anyone have a successful configuration for debugging javascript Sage?
Thanks Ben, that seems to get me closer. I can now set breakpoints in VS code. But, the scripts where I can set breakpoints are in a sage directory in the Loaded Scripts panel, and edit only. The sage directory does not exist in my project file structure. Setting breakpoints in my actual src js files does nothing. Is there a configuration to set the source map to point to the files in my src directory rather than the virtual sage directory?