Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
wp-scripts test-unit-js node debugging #21631
wp-scripts test-unit-js node debugging #21631
Changes from all commits
8167689
b09a3d4
cd26cac
6ac725d
3b4d85e
823366d
c60a060
a79138a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
The same question applies, what about other IDEs?
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.
Node's inspector clients section lists Visual Studio, JetBrains IDEs, Gitpod, and Eclipse. I expect Gitpod and Visual Studio to be similar to Code since they're all quite similar IDEs, but I haven't used JetBrains or Eclipse for web development, so I can't comment on how different they might be to set up for debugging.
It's probably not reasonable to add all the options, but I figured it would be good to include at least a couple specific graphical options as examples in the README since documentation I've seen elsewhere isn't very great. And debugging these scripts is going to be slightly different than the normal use-case because our script spawns the node process rather than the user running node directly with the options.
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.
I have a similar feeling here. The section could target IDEs in general and could include the details you shared in the comment and we would just have this example for VSC included as is. The truth is that VSC and Chrome are the most popular anyway 😃