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

How to run with --inspect flag? #195

Closed
andrewvasilchuk opened this issue Nov 14, 2019 · 8 comments
Closed

How to run with --inspect flag? #195

andrewvasilchuk opened this issue Nov 14, 2019 · 8 comments
Labels
question Further information is requested

Comments

@andrewvasilchuk
Copy link

andrewvasilchuk commented Nov 14, 2019

No description provided.

@kevinmarrec
Copy link
Contributor

@andrewvasilchuk Could you provide more information ? Is this some ts-node option ?

@kevinmarrec kevinmarrec added the question Further information is requested label Nov 22, 2019
@andrewvasilchuk
Copy link
Author

@kevinmarrec Debugging

@georgyfarniev
Copy link

This and many more similar questions forced me to use Nuxt programmatic API and create Koa server in the end. It's not recommended way, but easy solution for this and many other problems, such as this one: #175

@NickBolles
Copy link

node --inspect node_modules/.bin/nuxt-ts seems to be working for me

@kevinmarrec
Copy link
Contributor

@nuxt/typescript-runtime uses ts-node programatically, which doesn't seem to provide inspect support, however @NickBolles answer should indeed work.

If using Nuxt programmatically -> ts-node --inspect src/server.ts

@NickBolles
Copy link

FYI for future readers I had to use this with yarn 2.x
yarn node --inspect ../../node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js dev

This probably corresponds to something like this without yarn 2
node --inspect ./node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js dev

@jakiro2017
Copy link

For me this work

NODE_ENV=dev node --inspect=6969 ./node_modules/.bin/nuxt

@joanfabregat
Copy link

Just add NODE_OPTIONS=--inspect (doc) to your .env then run Nuxt normally.

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

No branches or pull requests

6 participants