nksaraf / vinxi

The Full Stack JavaScript SDK
https://vinxi.vercel.app
MIT License
1.33k stars 57 forks source link

How do I attach a debugger to a process running in `vinxi`? #302

Open laptou opened 1 month ago

laptou commented 1 month ago

I'm using Bun as my runtime for a SolidStart project.

I tried bun --inspect dev and bun --inspect-brk dev. That didn't work, vinxi just ran as normal. I thought maybe it was an issue with Bun, so I switched to using Node. I tried npm run --inspect dev and npm run --inspect-brk dev. This also didn't work.

I tried running npm run dev inside of VSCode's JavaScript Debugger terminal. That didn't work either.

Gkjsdll commented 2 weeks ago

node --inspect-brk .\node_modules\vinxi\bin\cli.mjs dev seems to work for me.