Oracle Solaris Studio: Did you know? dbxtool is back
I'm seeing as I hear more and more from customers that few of them are aware that [B]DBXtool has come back as an independent, standalone tool in Studio[/B]. This blog is a note to get the word out, but while I'm at it, let us look at it in somewhat greater depth.
[B]History of Dbxtool:[/B] OK, its inevitable that the re-emergence of DBXtool is tied to past history. So, lets peek a bit at the last 20 years. I remember back from the mid to late 80s when [URL="http://en.wikipedia.org/wiki/SunView"]Sun's introduction of a desktop Windowing system called SunView[/URL] featured a graphical debugger called [B]dbxtool.[/B] dbxtool was a simple, easy to use interface to the source-level debugger, dbx. [[URL="http://www.sics.se/man2html/dbxtool.1.html"]I am amazed that you can still find references to it on the web[/URL]!]. Personally, I found dbxtool to be a huge productivity enhancer and used it more than any other graphical productivity application (other than perhaps email!). In particular, I remember cool commands like "[B]button expand[/B]" that let you create your own buttons in the panel. In the early 90s, Sunview evolved into a short-lived but very interesting project called NeWS. But more significantly, as Sun upgraded to the [URL="http://en.wikipedia.org/wiki/OPEN_LOOK"]Open Look feel[/URL], dbxtool was rewritten for the new look-and-feel, so that [I]events[/I] like [B]Breakpoint[/B]-controls and [B]Execution[/B], [B]Stack[/B] and [B]Data[/B] display properties all had their own menus. From here on, dbxtool (now called simply: [B]Debugger[/B]) was increasingly integrated into a programming environment which included editors-of-choice (vi, xemacs, nedit), a source browser, a build system and a source code management system (called Teamware). The debugger could still be invoked individually, if so desired, but it was all in the context of a larger toolset called [B]Workshop[/B]. Workshop was an immensely popular product in the mid 90s for Sun's developer tools offering and to this day, many of Sun's enterprise customers fondly remember it.
But Sun was also undergoing a lot of change (particularly: Java, in this context) and in a quest to get a state-of-the-art IDE and to allow programmers to use the same tools for Java and C/C++, Sun bought a Czech company called NetBeans. This IDE had its own strong notion of workflow, learning much from the Microsoft and Borland models of tightly-integrated edit-compile-debug cycle support. The tools were all tightly integrated and Workshop went through three more name changes before finally settling in on the Sun Studio name(Workshop -> Forte Developer -> Sun ONE Studio -> Sun Studio). The Workshop group integrated C/C++ language support into NetBeans and thus made this offering equally complete and competitive for C/C++ users as well.
Since the late 90s and throughout this decade, the debugger has lived inside the (NetBeans-based) Studio IDE. Which is great. However, [B]not everyone in Unix likes an IDE[/B]. In particular, many of them want simple, standalone tools. Make, SCCS/TeamWare, Source Browser etc. all evolved in Unix/Solaris from this strong need. So, despite a fairly strong undercurrent of demand for a lightweight, standalone tool for debugging, this has been available only through the IDE. Finally, in 2009, Studio released a standalone debugger, [B]dbxtool[/B] to satisfy this constant demand.
[B]What is in Dbxtool? [/B]Three things are different from the debugger in IDE. First, dbxtool is standalone and only loads the modules needed for debugging (and thus has faster startup and is lighter in memory usage). Second, dbxtool can be used to directly act upon a binary without having to create a project. Finally, you can embed dbxtool invocation into shell scripts and driver programs (via ss_attach) and do "dbx-specific" things like debug corefiles, debug process-ids without an executable, etc. Thus dbxtool more closely mimics the functionality in dbx, while preserving the advantages and convenience of graphical look-and-feel.
In dbxtool, you can look at stack traces, register dumps, [dis]assembly of corresponding source, watchpoints, multiple thread execution states, examining variables, and perform extensive expression evaluation.
Among other things that you might not know about, [B]Dbxtool does runtime memory checking, allows for multiple sessions and does remote debugging (Solaris/Linux Client to Solaris/Linux server)[/B].
Read more about it from the [URL="http://developers.sun.com/sunstudio/documentation/ss12u1/mr/man/man1/dbxtool.1.html"] manpage here [/URL]. Or from the [URL="http://webcast-west.sun.com/interactive/09B01885/09B01885_02/index.html?CID=2346"]dbxtool video screencast[/URL] here.
Finally, here is a screenshot of dbxtool: [IMG]http://blogs.sun.com/tatkar/resource/dbxtool.png[/IMG]
[url=http://blogs.sun.com/tatkar/entry/oracle_solaris_studio_did_you]Read More about [Oracle Solaris Studio: Did you know? dbxtool is back ...[/url]