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

Node debugging issues #242

Open
oliversturm opened this issue Jul 2, 2018 · 0 comments
Open

Node debugging issues #242

oliversturm opened this issue Jul 2, 2018 · 0 comments

Comments

@oliversturm
Copy link
Contributor

I recently started using the editor widget in an application based on blessed. Now I noticed that I can't debug properly anymore - as soon as the debugger is attached, the screen is plastered with messages like this (strangely enough, debugging seems to work fine while this happens).

Starting inspector on 127.0.0.1:9229 failed: address already in use

The port varies - if I start the debugger from VS Code, it assigns a new random port every time, and the message remains the same with the exception of the port. Using the Node debugger in Chrome shows the same problem though, this is not a VS Code issue.

Tests showed me that my application debugs just fine if I replace the line where I call new Editor(...) with blessed.box(...). I may go and read source code to figure out what it is that the editor widget does that breaks debugging - meanwhile, any ideas from those who know the project?

oliversturm added a commit to oliversturm/editor-widget that referenced this issue Jul 3, 2018
Current node versions don't accept `--debug` and `--debug-brk` anymore without complaints, and current version debuggers pass `--inspect` and `--inspect-brk` anyway. The change solves the problem reported in slap-editor#242, but I have not tested the functionality that was presumably intended by the original author.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant