graphpack icon indicating copy to clipboard operation
graphpack copied to clipboard

Setting up debugger in vs code

Open lavaxun opened this issue 6 years ago • 2 comments
trafficstars

Any documentation or guide for setting up debugger in visual studio code?

lavaxun avatar Nov 06 '19 03:11 lavaxun

You'll need to either launch the graphpack CLI with node debug enabled from your app, or it could be added as a flag to the CLI, so you could have a debug script in your package.json such as:

{
  "dev:inspect": "graphpack --debug"
}

You'll then have to attach your VSC debugger to the running Node.js process

This will be a quick win, I'll create a PR soon, hopefully @glennreyes sees benefit in it!

gomesalexandre avatar Nov 09 '19 15:11 gomesalexandre

Yeah, I think that'd would work for me. A PR would be awesome @gomesalexandre! 🙌

glennreyes avatar Nov 11 '19 12:11 glennreyes