-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gatsby] How to use VS Code debugger with Gatsby #36448
Comments
Using |
Seems like this line here explicitly disables source maps for compilation of Gatsby files. To my understanding this would be done to prevent security concerns, however I'm going to try enabling it to see if I can get the debugger to find the source files.
|
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Bump. See: #36450 |
Summary
It's not clear how to debug the build and develop processes now that worker threads are used. VS Code debugger cannot attach to the worker threads properly and yields this error when using the provided
launch.json
in the documentation:Provided
launch.json
:Running
gatsby develop
ongatsby@4.21.1
with thatlaunch.json
onnode@14.20.0
yields this error:Current docs for running the VS Code debugger on a Gatsby build or develop process: https://www.gatsbyjs.com/docs/debugging-the-build-process/
Steps to Resolve this Issue
launch.json
config, add any other required config or informationThe text was updated successfully, but these errors were encountered: