Skip to content

Add debugger support #85

@OlegPhenomenon

Description

@OlegPhenomenon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions