27

I'm aware of how to access the Chrome Dev Tools with Google Chrome to debug Node.js applications: just go to about://inspect.

I encountered a line of text on MDN mentioning that Firefox could be used for Node.js applications, but going to about://inspect in Firefox doesn't work. I'd like to know how this would be done in Firefox, if it is indeed possible.

1
  • It's a fairly complicated process for Firefox. I'd recommend their own guide on connecting remote devices. Commented Nov 12, 2017 at 20:37

2 Answers 2

16

Because Firefox uses a different Javascript engine (Gecko) than Node.js (V8), it's impossible to use the Firefox dev tools to debug Node scripts. As of this post, MDN says as much in their "Remote Debugging" article:

You can connect the developer tools to Gecko-based runtimes...

https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging

Sign up to request clarification or add additional context in comments.

Comments

0

There's a tool called node-firefox that you can use for that, you can download it from:

npm install node-firefox

Here's the source code: https://github.com/mozilla/node-firefox

And a introductory guide: https://hacks.mozilla.org/2015/02/introducing-node-firefox/

1 Comment

actually this concerns front-end debugging, not server-side debugging as chrome does

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.