PDA

View Full Version : Debug.js: A JavaScript VM and In-Browser Debugger In Pure JS Generators


sl4shd0t
01-08-2014, 11:30 AM
New submitter amasad writes "This post describes building a JavaScript virtual machine and an in-browser stepping debugger using the latest JavaScript generator feature. It's called debug.js. 'For the past few years I’ve been working on creating tools to help people learn programming on the web. I’ve worked on repl.it and open sourced the underlying technology which powered a few learn to code websites and until recently lead product engineering at Codecademy. Through all that, one thing I really wanted to see are the tools to make it possible to visualize code execution and step through code in the browser. To catch glimpse of what an ideal interactive learning environment would be you should check out Learnable Programming by Bret Victor. In addition to the educational benefits of such a tool, if matured it could be also useful for code instrumentation, web IDEs, and creating a foundation for writing other VMs on top of JavaScript (having the pausable machine state let's you not worry about the non-blocking environment). Ever since I've read about the ES6 Generators proposal, I’ve been toying with this idea in my head but it wasn't a real possibility until Ben Newman's Regenerator brought generators to the browser.'" http://a.fsdn.com/sd/twitter_icon_large.png (http://twitter.com/home?status=Debug.js%3A+A+JavaScript+VM+and+In-Browser+Debugger+In+Pure+JS+Generators%3A+http%3A% 2F%2Fbit.ly%2F1bPq6YY) http://a.fsdn.com/sd/facebook_icon_large.png (http://www.facebook.com/sharer.php?u=http%3A%2F%2Fdevelopers.slashdot.org% 2Fstory%2F14%2F01%2F08%2F0119237%2Fdebugjs-a-javascript-vm-and-in-browser-debugger-in-pure-js-generators%3Futm_source%3Dslashdot%26utm_medium%3D facebook) http://www.gstatic.com/images/icons/gplus-16.png (http://plus.google.com/share?url=http://developers.slashdot.org/story/14/01/08/0119237/debugjs-a-javascript-vm-and-in-browser-debugger-in-pure-js-generators?utm_source=slashdot&utm_medium=googleplus)

Read more of this story (http://developers.slashdot.org/story/14/01/08/0119237/debugjs-a-javascript-vm-and-in-browser-debugger-in-pure-js-generators?utm_source=rss1.0moreanon&utm_medium=feed) at Slashdot.
http://slashdot.feedsportal.com/c/35028/f/647376/s/35a0bb92/sc/4/mf.gif


http://da.feedsportal.com/r/186528357654/u/49/f/647376/c/35028/s/35a0bb92/sc/4/rc/1/rc.img (http://da.feedsportal.com/r/186528357654/u/49/f/647376/c/35028/s/35a0bb92/sc/4/rc/1/rc.htm)
http://da.feedsportal.com/r/186528357654/u/49/f/647376/c/35028/s/35a0bb92/sc/4/rc/2/rc.img (http://da.feedsportal.com/r/186528357654/u/49/f/647376/c/35028/s/35a0bb92/sc/4/rc/2/rc.htm)
http://da.feedsportal.com/r/186528357654/u/49/f/647376/c/35028/s/35a0bb92/sc/4/rc/3/rc.img (http://da.feedsportal.com/r/186528357654/u/49/f/647376/c/35028/s/35a0bb92/sc/4/rc/3/rc.htm)

http://da.feedsportal.com/r/186528357654/u/49/f/647376/c/35028/s/35a0bb92/a2.img (http://da.feedsportal.com/r/186528357654/u/49/f/647376/c/35028/s/35a0bb92/a2.htm)http://pi.feedsportal.com/r/186528357654/u/49/f/647376/c/35028/s/35a0bb92/a2t.imghttp://feeds.feedburner.com/~r/Slashdot/slashdotDevelopers/~4/-BGYwtPFJdw

More... (http://rss.slashdot.org/~r/Slashdot/slashdotDevelopers/~3/-BGYwtPFJdw/story01.htm)