New in Haiku: Debugger is now default
Just a few days ago, Rene Gollent switched on the Haiku debugger as the default debugger. Starting from revision 45032, whenever an application crashes, you will now get the option to debug it in Haiku's debugger. This milestone is important because it marks Haiku's debugger as ready for general use. Before Haiku used the command line tool gdb, which is very good but also very user unfriendly if you are used to a descent GUI debugger.
What changed?
Whenever an application crashes, you will see this dialog:

If you click on the Save Report button you will be able to save a debug log to a text file, which you can attach to bug reports. If you click on the Debug button, instead of going to gdb, you will now open Haiku's Debugger:

Authors & code
Initial work on the debugger was done by Ingo Weinhold. Recently, Rene Gollent worked hard on getting the debugger into shape and getting it ready for release quality.
The debugger itself can be found at src/apps/debugger. The kernel support for debugging can be found at src/system/kernel/debug. There is a debug server that runs in the background and monitors which applications have crashed, and if so enables Debugger to take it over. It can be found at src/servers/debug.
- nielx's blog
- Login or register to post comments

Comments
Re: New in Haiku: Debugger is now default
Yay!
Awesome work.
Re: New in Haiku: Debugger is now default
Thanks a lot, Rene and Ingo!
Re: New in Haiku: Debugger is now default
I always knew that santa really does exist, finally this year he is in time :-)
Re: New in Haiku: Debugger is now default
Re: New in Haiku: Debugger is now default
I am curious! Was this new debugger needed before Haiku could enter beta phase? If not, well it could not hurt, could it? This trully is an awesome feature that Haiku and her users have been waiting for for so long!
Kudos to Ingo and Rene for making this possible!
Re: New in Haiku: Debugger is now default
Re: New in Haiku: Debugger is now default
In the Screenshot it says "Source file unavailable". How can you attach the source code?
TBH, I have to disagree that this debugger is more user-friendly than gdb. At least for gdb there is a man page and extensive documentation on the net. I tried the new debugger a while ago and couldn't really use it.
Re: New in Haiku: Debugger is now default
Re: New in Haiku: Debugger is now default
Is it possible to install and invoke the Haiku debugger in Alpha4? Or is a current nightly required?
Re: New in Haiku: Debugger is now default
I want to inspect the value of a variable at runtime. How can I set a breakpoint to do so?