-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
node debugger with now dev #2864
Comments
Can you elaborate this a bit? How would this work? |
If I run a node project without |
Ahh, I see. Thanks @mckernanin. This sounds like something we could make happen at the config-level (in |
This would make the debugging workflow so much easier, really need this! |
Progress?I got so far as to get the VSCode debugging tools to launch {
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Now Dev",
"program": "/home/nick/.yarn/bin/now",
"args": ["dev"]
}
]
} To set up on your machine, replace At least 2 problems remain:
System and VersionsLinux x64 (Pop_OS! 19.10) |
Now dev would need to expose access to the debugger enabled node process. Sent with GitHawk |
Sorry @NWRichmond, we can't debug a program launched by another process ( |
This is important, I'm looking at a way of doing this when running my Next.js app from my local computer. |
Found a hacky way that is documented on #2077 And this issue should be closed in favour of the other one |
It could be better to add some mechanism to add any flag to underlying node instance @leo I don't think that It would be easier to only add a I would happy to help because I am migrating my API from now v1 to v2 and loosing this debug capability is a real blocker. |
Desperately want this! |
Thank you for creating this issue! Please note that – in order for us to be able to handle each feature request with care – we have to consume all of them through a unified pipeline that makes it easier for us to prioritize, track and progress on the features our user base is interested in. In turn, the Issues tab on this repository is best only be used for reporting bugs, which we can immediately act on. For well-explained feature requests (like the one you just posted), please contact us at support@zeit.co, so that we can consider adding it to our roadmap. |
As asked, I wrote to the support team and will update this thread if anything new comes up. (even though it's closed) |
@Vadorequest are there any news about this issue? I'd like to use webstorm debugger but haven't found a way yet |
I haven't had any feedback from the support team at this time. |
install now locally and then
but the break point doesn't work, vscode says: "Breakpoint ignored because generated code not found (source map problem?)" |
@gaoxiaoliangz this is the exact issue found with Webstorm debugger. I can start the debugger or run the code but the breakpoints doesn't work at all. |
I currently use the following steps to debug my code on the local vercel instance using vscode:
Hope this helps somebody. |
Still struggling with trying to get the vscode debugger to work on a next app with vercel dev.. This is such a disjointed experience. I cannot set a breakpoint in vscode. |
@offero Strange, I have the breakpoints working on my side (see system info below) . I however noticed that on firefox sometimes the breakpoints are skipped. Did you try chrome?
|
I got vscode to debug with In your |
It would be fantastic to be able to connect vscode/chrome etc debugger to node apis running in
now dev
!The text was updated successfully, but these errors were encountered: