Giter Club home page Giter Club logo

Comments (12)

callmephilip avatar callmephilip commented on July 21, 2024

👍 same question here

from devtool.

mik01aj avatar mik01aj commented on July 21, 2024

Node inspector opens in browser via HTTP, and this one uses Electron, which is much faster.

But there's also iron-node, which is Electron-based too...

from devtool.

halhenke avatar halhenke commented on July 21, 2024

I know node-inspector allows you to pause execution on the first line which is really handy if you want to step through some code that you might not want to edit. iron-node doesn't have that yet. Would be super cool if this could pull that off 🙏

Dont think node-inspector has the REPL features this does. Its a long time since i used it though because it wasnt working (for me at least) for a while there.

from devtool.

mik01aj avatar mik01aj commented on July 21, 2024

I know node-inspector allows you to pause execution on the first line (...). iron-node doesn't have that yet.

See s-a/iron-node#35.

from devtool.

halhenke avatar halhenke commented on July 21, 2024

ah - thanks. For some reason i thought i tried that and it didnt work.

from devtool.

mattdesl avatar mattdesl commented on July 21, 2024

I hadn't seen iron-node when I was developing this, and it seems to tackle the problem in a similar way.

Some features that make devtool a little unique:

  • this is a bit more focused on command-line use and Unix-style piping/redirection (stdout/stdin)
  • this embraces and promotes the Browser/Electron APIs – see the StreetView example which renders a <canvas> to a PNG buffer, then writes the buffer to process.stdout
  • the require hooks are modified to provide features that Electron (and iron-node) do not currently support, like:
    • source maps for files in the sources panel
    • more detailed syntax error messages
    • optional "browser" field resolution

node-inspector is built on a completely different architecture (Chrome Remote Debugging Protocol, if I understand correctly). It has its own set of pros (like native addons and a true node environment) and cons (poor GUI experience, limited set of Chrome features, can't just reload the page, etc).

I will do a more detailed comparison today and add it to the readme. 😄

from devtool.

markogresak avatar markogresak commented on July 21, 2024

@mattdesl Thanks for the explanation. Adding this comparison to readme would be great so visitors can find this information right away.

from devtool.

mik01aj avatar mik01aj commented on July 21, 2024

@mattdesl and @s-a, would you consider joining your efforts to create the ultimate debugger for Node? :D I think this could be a huge benefit for the Node community.

from devtool.

halhenke avatar halhenke commented on July 21, 2024

@mattdesl 👍 great comparison

from devtool.

mattdesl avatar mattdesl commented on July 21, 2024

@mik01aj Once some stuff here stabilizes, I will try to split it out into separate modules so that iron-node (and any other potential tools) could take advantage of it.

I think it's best to keep these projects separate since they both tackle the problem in different ways, and allow for different use cases.


I can't actually get node-inspector to work right now (even just a "Hello World") so I'm having a hard time getting a feel for it. Last time I tried it, the GUI experience was clunky, things would crash often and features like profiling did not work like they do in regular Chrome. I suspect some of these things have been fixed since then, but I can't really be sure until I give it another go. 😄

from devtool.

mattdesl avatar mattdesl commented on July 21, 2024

Ok, added to readme.
https://github.com/Jam3/devtool#see-also--comparisons

from devtool.

halhenke avatar halhenke commented on July 21, 2024

Yeah my experiences with node-inspector have been more miss than hit - for a long time it was very much broken though i did get it to work recently.

Thats why I'm pretty excited about this project - a great debugger and a great REPL are two things that have really been missing in Node IMO.

from devtool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.