BlogDr Konqi now with colors (Updated) Syndicate content

Fri, 08/20/2010 - 18:19

Hey there :)

As I announced on the kde-core-devel mailing list, I planned to improve Dr Konqi for a long time, as for me as a developer it is an invaluable tool. Well, yesterday I sat down and implemented the first two things which I wanted for a long time:

Scroll to KCrash

Once the backtrace got loaded, Dr Konqi will automatically scroll to the line that contains [KCrash Handler]. No need to find that manually anymore. Awesome :)

Colors!

Yeah, you should know that I as a KDevelop user and developer am addicted to syntax highlighting. That’s what I did for Dr Konqi as well now:

So anyone using KDEBase trunk will now have a shiny Dr Konqi :) Feedback appreciated, esp. whether more or less should be highlighted. I personally found it overly colorful when I also highlighted pointer adresses (ignore the bug in that outdated screenshot). What do you think?

Anyhow, thanks to George Kiagiadakis for helping me find my way through Dr Konqi sources and accepting my feature additions.

Update

I put some more feedback into reality: Fixed width font, null pointers are bold and in addition common functions that lead to exits are now highlighted in red (i.e. qFatal, __assert_fail and abort):

Comments

I one word: Awesome!!! ANd a Thu, 08/19/2010 - 09:36 — Diederik van der Boor (not verified)

I one word: Awesome!!!

ANd a nice attention to detail :)

My concern here is that you Thu, 08/19/2010 - 02:21 — Eike Hein (not verified)

My concern here is that you will discourage developers from fixing crashes by making them too pretty! :)

I like the yellow for Wed, 08/18/2010 - 20:05 — Anonymous (not verified)

I like the yellow for pointers. Null pointers should be bolded, as well.

null ptrs are now bold and Fri, 08/20/2010 - 17:46 — Milian Wolff

null ptrs are now bold and qFatal, __assert_fail and abort functions are now highlighted red as well.

I wouldn’t highlight each and Wed, 08/18/2010 - 19:13 — Arno Rehn (not verified)

I wouldn’t highlight each and every pointer address, but highlighting null pointers might be a good idea. In many cases they are somehow involved in the crash, so the highlighting can help trace the problem.

uhm, take another look at the Fri, 08/20/2010 - 16:05 — Milian Wolff

uhm, take another look at the screenshot… you see the red 0x0? It’s already highlighted :P

I agree. Pointer addresses Wed, 08/18/2010 - 21:28 — Anonymous (not verified)

I agree. Pointer addresses don’t offer much new information (at least not to me), but finding null pointers in useful.

Anyway, thanks for this great work, I must say I love the highlighting in KDevelop, so I’m happy to see it here too :)

You are not a secret son of Wed, 08/18/2010 - 18:16 — Anonymous (not verified)

You are not a secret son of David Faure?

haha no :) but thanks for the Fri, 08/20/2010 - 16:05 — Milian Wolff

haha no :) but thanks for the compliment.

How about clickable links Wed, 08/18/2010 - 18:02 — bbroeksema (not verified)

How about clickable links when a valid file url is found? Bonus points when it opens up an editor and scrolls to the correct line .

it’s on my todo :) Fri, 08/20/2010 - 16:05 — Milian Wolff

it’s on my todo :)

Looks really good. How about Wed, 08/18/2010 - 17:56 — Anonymous (not verified)

Looks really good. How about if you simply make the pointer addresses italicised? It differentiates them without making them glare at the user.

nah, that doesn’t look any Fri, 08/20/2010 - 17:46 — Milian Wolff

nah, that doesn’t look any good.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <pre>.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options