Skip to content
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

Add debugger support #85

Open
OlegPhenomenon opened this issue Jun 4, 2021 · 0 comments
Open

Add debugger support #85

OlegPhenomenon opened this issue Jun 4, 2021 · 0 comments

Comments

@OlegPhenomenon
Copy link
Contributor

To make life easier for me and perhaps for those who will still be engaged in the project, there is a cool feature in VS code, which can allow you to add the ability to debug the project on React.

Here are the templates:
Run -> Add Configuration -> Node JS

{
	// 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": [
	
		{
			"type": "node",
			"request": "attach",
			"name": "Launch Program",
			"skipFiles": [
				"<node_internals>/**"
			],
			"port": 9229
		}
	]
}

In package.json add:
"debug": "NODE_OPTIONS='--inspect' next dev",

After run press F5 and put necessary breakpoint.

Also will be nice if we add this feature into readme.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant