Comments (12)
👍 same question here
from devtool.
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.
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.
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.
ah - thanks. For some reason i thought i tried that and it didnt work.
from devtool.
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 toprocess.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.
@mattdesl Thanks for the explanation. Adding this comparison to readme would be great so visitors can find this information right away.
from devtool.
@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.
@mattdesl 👍 great comparison
from devtool.
@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.
Ok, added to readme.
https://github.com/Jam3/devtool#see-also--comparisons
from devtool.
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)
- Module version mismatch. Expected 50, got 51. HOT 5
- Fails on save when using mongoose 4.x with sub-documents
- Require hook for ts-node doesn't work HOT 3
- V8 flag `--expose-gc` causes whole config to silently fail
- Reload console on file change with --watch
- Windows 10: File /npm/node_modules/devtool/index.html not found HOT 1
- Add flag to disable process.exit() HOT 1
- impossible to inspect http requests
- Devtool Chrome debugger cannot find prototype closure functions
- Ignore files when using --watch HOT 5
- Devtools doesn't work with dynamic link libraries
- REPL :: On windows (10) i can't require modules from current working directory HOT 1
- Can you add docs on how to use this with jest? HOT 1
- Support more flags in devtoolrc
- install error HOT 1
- add support async/await HOT 3
- please update new electron version
- Unable to install
- devtool with expressjs, how to find script files?
- devtool/bin/spawn replacement in Node/DevTool? Looking for advice ... HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devtool.