glennreyes / graphpack

☄️ A minimalistic zero-config GraphQL server.

Home Page:https://codesandbox.io/s/k3qrkl8qlv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting up debugger in vs code

lavaxun opened this issue · comments

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

commented

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!

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