Tuesday, December 2nd, 2008

XBug: New JavaScript Debugger

Category: Debugging, Utility

Greg Salisbury has released a new JavaScript debugger called XBug that “currently runs on the Windows XP/Vista platform, but, it can also be used to debug webpages on Windows or Linux servers. It’s cross-browser compatible, and works with Chrome, Firefox 2/3, IE 6/7, and Safari 3. After selecting your web page, you can then trace or step through your javascript code in real-time. Set breakpoints, and watchpoints in a separate code window, see a trace log while your code is executing, inspect variables, and even get an indexed list of the functions/methods in your scripts.”

Fancy a try? Grab the msi and get to it.

Posted by Dion Almaer at 4:39 am

3.8 rating from 27 votes


Comments feed TrackBack URI

It needs to add it’s own javascript into the page :-(

“If your code is not ‘namespaced’ (like most code in HTML files), then you’ll need to add this line, and add block braces {…} around your code: (NOTE, when not debugging, you’ll need to comment out the XBug line)”

Comment by edeverett — December 2, 2008

The above comment makes it sound worse than it really is.
For ‘namespaced’ code in an external javascript.js file, a single line of code needs to be added, but this can be left in the code, even when not debugging.
For HTML files with embedded script tags, it’s only necessary to add an XBug line, if you want to debug the javascript in it. And, if that javascript is ‘self-contained’, the XBug line can also be left there, when not debugging. So, it’s only the worst case scenario that you actually have to comment out a single line in your HTML file when you’re not debugging javascript in a HTML file.

Comment by GregXBug — December 2, 2008

Seems project http://code.google.com/p/jsdt does same jobs, it is a plugins for Eclipse

Comment by ericsuen — December 2, 2008

Pretty cool to have a good debugger for all those “not Firefox” browsers. Would this work for Abode AIR as well?

Comment by Nosredna — December 2, 2008

Hi ericsuen,
I don’t use Eclipse so I’m not sure, and could not tell from the url you gave (even when i changed view to english;-), but they show an alert in their javascript code… well with XBug you should never need to use an alert ever again, or even add any other debug/console/print type stuff into your code.
Maybe you can let me know when you try out XBug http://www.xbug.co.uk which is live and unplugged.
Hi Nosredna,
Not used AIR, so don’t know, sorry.

Comment by GregXBug — December 2, 2008

one month ago I published Javascript Debug Toolkit can debug javascript in ie,firefox,safari,chrome,opera and all the browser support ajax.
Javascript Debug Toolkit is a free open source eclipse plugin can run in all the os system support eclipse.

Comment by ayound — December 2, 2008

Fellow Ajaxians,
I was hoping to see more of a debate on debugging javascript, and XBug in particular – obviously I’m a little biased ;-)
If you’re not programming javascript commercially, then you may not be interested in cross-browser javascript development, but for those who do, or are interested, why not make some comments here?
Unlike other debugging solutions, XBug allows the developer to use whatever IDE they want on any platform (though you currently need a windows system to use XBug – not that should be a problem for any commercial developer). For many developers Firebug has been the answer to debugging, but when it comes to debugging for other browsers then things are pretty bad.(maybe not if you use eclipse;-)
IE6 still has a large share of the browser market (around 20-25%), similar to Firefox! IE7 has the largest share, but Chrome looks good, and is fast, as is Safari. So the percentage mix may well change, but it’s essential to be able to debug them all.
XBug can help – it is a debugger. (unlike the other 101 ‘debugging’ tools you see on the web)
Thoughts anyone?

Comment by GregXBug — December 4, 2008

Leave a comment

You must be logged in to post a comment.