You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've been configuring my nvim to debug on my editor a next.js app. And it works by starting a dev server with node options for debugging like this:
NODE_OPTIONS='--inspect' pnpm dev
But I was wondering if it's possible to launch a next server from nvim like VSCode does.
This is my launch.json in VSCode
This starts the server inside VSCode and the debugger is up and running
So you this would be possible use nvim-dap?
Thanks for this awesome project!
Possible Solutions
No idea.
Considered Alternatives
The alternative is to use NODE_OPTIONS in a terminal and then attach to that next server. Is fine but it would be awesome to be able to launch the server and attach within nvim.
The text was updated successfully, but these errors were encountered:
I wrongly open this issue first in nvim-lap and the maintainer kindly redirected me to this project. I hope this is the right place to ask this.
After much try and error and realize that NextJS itself was broken in terms of debugging experience I have to say that this package works great. This is my current .vscode/launch.json
As you can see I work by attaching to current process. And it's really fine but I was wondering how hard would be to much VSCode dev experience on launching the process from the editor.
Problem Statement
Hi, I've been configuring my nvim to debug on my editor a next.js app. And it works by starting a dev server with node options for debugging like this:
But I was wondering if it's possible to launch a next server from nvim like VSCode does.
This is my
launch.json
in VSCodeThis starts the server inside VSCode and the debugger is up and running
![image](https://private-user-images.githubusercontent.com/49499/248906854-fd92081d-61c4-4cf1-bd12-15e064c732da.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA5OTkxOTMsIm5iZiI6MTcyMDk5ODg5MywicGF0aCI6Ii80OTQ5OS8yNDg5MDY4NTQtZmQ5MjA4MWQtNjFjNC00Y2YxLWJkMTItMTVlMDY0YzczMmRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE0VDIzMTQ1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVjOWRkNGQwMDAzY2M2YjhiOGUxMDA2NGY1MjBhNjBkNGI2MGE1MGE3YjY5Njg5OGYyZjYxN2IzYjAzYjk0MDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OF79cBCOUC8YbA23pEyVuVEykcYaOUlqj1IrAP74nHY)
So you this would be possible use nvim-dap?
Thanks for this awesome project!
Possible Solutions
No idea.
Considered Alternatives
The alternative is to use
NODE_OPTIONS
in a terminal and then attach to that next server. Is fine but it would be awesome to be able to launch the server and attach within nvim.The text was updated successfully, but these errors were encountered: