#ruby-debug-web-ide A prototype app for debugging Ruby scripts in Web IDEs.
Screencast (try hi-res + full-screen)
- User starts the server e.g.
node socket-server.js. - Visits http://localhost:8888/.
- Page loads and
front.jsopens one websocket to the server and gets the list of Ruby script available at public/ruby. - User selects a script from the drop-down,
front.jsloads it in the editor (Ace). - User enters line for breakpoint and presses the DEBUG button.
node socket-server.js- Spawns the debugger on a different process,
- Sets the break point,
- Inspects local variables,
- Sends the data back to the client over the Websocket,
- Terminates debugger process.
front.jsrenders data in a table.
This is just a proof-of-concept and has several issues like racing-conditions, poor scalability, garbage-processes, etc. etc.
- As far as I know it was used in NetBeans and RubyMine
- Now primaraly supported by the IntelliJ team (RubyMine)
- Node.js v0.5.0-pre
- Socket.io 0.7.7
- Express 2.4.3
- libxmljs 0.4.2
- Ruby 1.8.7
- ruby-debug 0.10.4
- ruby-debug-base 0.10.4
- ruby-debug-ide 0.4.16
- Google Chrome 14 beta
- jQuery 1.6.2
- Underscore.js 1.1.7
- Mac OS X 10.6.8
- Werner Schuster, for bringing rdebug-ide to my attention.
- Martin Krauskopf, rdebug-ide committer for his tip.
