question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature request] Add inspectUri argument to Node debugger

See original GitHub issue

Hey guys, React Native Tools team here. During migration of the extension on js-debug we found out that Node debugging scenarios doesn’t support inspectUri argument for discovering debugging target websocket via debugging proxy as browser scenarios does. Is it possible to add such an argument for Node scenarios?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
RedMickeycommented, Mar 19, 2020

Thanks for clarification, it seems that implementation of inspectUri parameter won’t make much sense for the extension in this case. So we are going to implement inspector socket lookup on RN extension side ourselves.

1reaction
connor4312commented, Mar 18, 2020

In the Node attach case, you’re attaching to a process that is already started.

we’ll need to do inspector websocket lookup for debugging target from the proxy side

I think this is the correct thing for you to do. The inspectUri is useful in the Chrome launch case because there’s a lot of browser launching behavior that js-debug implements that would be impractical to reimplement in a the proxy. But if you already have a process running, it should be fairly trivial to do the websocket lookup there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debug Node.js Apps using Visual Studio Code
The Visual Studio Code editor includes Node.js debugging support. Set breakpoints, step-in, inspect variables and more.
Read more >
Debugging - Getting Started - Node.js
This guide will help you get started debugging your Node.js apps and scripts. Enable Inspector. When started with the --inspect switch, a Node.js...
Read more >
Debug ASP.NET Core Blazor WebAssembly - Microsoft Learn
Learn how to debug Blazor WebAssembly with browser developer tools and an integrated development environment (IDE).
Read more >
the Fresh Open Source Software Archive - Fossies
Member "resources/app/extensions/ms-vscode.js-debug/package.nls.json" (20 Dec 2022 ... browser launch arguments (to disable features that may make debugging ...
Read more >
A complete guide to getting started with the Node debugger
js apps the debugger keyword will add a breakpoint, a stop sign of sorts for your code execution. Let's add a debugger statement...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found