-
Notifications
You must be signed in to change notification settings - Fork 34
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
Support Node.js debugging options #230
Conversation
This allows you to use `skuba start` with IDE debuggers.
🦋 Changeset detectedLatest commit: 06b1158 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
For example, in Visual Studio Code: | ||
|
||
1. Run `skuba start --inspect-brk` | ||
1. Run the built-in `Node.js: Attach` launch configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference, this looks like
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Attach",
"port": 9229,
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "pwa-node"
},
]
}
@@ -20,6 +20,7 @@ | |||
"format": "skuba format", | |||
"lint": "skuba lint", | |||
"start": "skuba start", | |||
"start:debug": "ENVIRONMENT=local skuba start --inspect-brk", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does brk
make sense as the sensible default?
This allows you to use
skuba start
with IDE debuggers.