BlogHighlighted Backtraces on BKO Syndicate content

Mon, 09/20/2010 - 19:05

Hello everyone, the “I can syntax highlight everything” guy speaking again :)

Yeah, I couldn’t sleep well after I put colors on Dr Konqi. I also did the same for Kate, if you did not notice it. There is a new GDB Backtrace syntax highlighting file for it, giving you the same pleasant experience you are now used to from Dr Konqi. Awesome.

But well, lets admit it: What use are these two for bug triaging? Visit any crash report on bko and you are left to plain old black-on-white… Stone-age stuff, lets put it on LSD, shall we not? I propose: The GDB Backtrace highlighter GreaseMonkey userscript!

Bug reports, feedback, pizza & beer all welcome :)

PS: How is GreaseMonkey for Konqueror coming along, anyone working on that? Does someone know whether Chrome or Opera could be made to work with this?

PPS: We could also install this script directly on BKO, but I fear it might be a tad bit slow, esp. for huge backtraces.

PPPS: Attached backtraces should be setup to be opened in Kate :)

Comments

Hi! This userscript is Tue, 05/03/2011 - 20:03 — Daniel Axelrod (not verified)

Hi! This userscript is absolutely excellent! It’s amazing how much more info you can get out of a backtrace at a glance when it’s properly syntax highlighted.

I would love to adapt the gdbbt Chili recipe to use in another project.

Would you be willing to release either the userscript or the recipe under a FOSS license? Alternatively, if it is already licensed under Creative Commons Attribution 4.0 (I wasn’t sure if it counted as a “Code Snippet”), would you mind fixing your blog’s link to the license? The current link to http://creativecommons.org/licenses/by/4.0/ returns a 404, and I don’t see an Attribution 4.0 license on the CC site anywhere.

Thank you so much!

Fixed the CC link - strange, Fri, 05/06/2011 - 13:55 — Milian Wolff

Fixed the CC link - strange, I am sure it once worked… Anyways I’ve also updated the user script and put it under GPL 3.

Feel free to use it anywhere.

Bye

I’ve written an incomplete Sun, 09/26/2010 - 01:34 — NamShub (not verified)

I’ve written an incomplete userscript (greasemonkey) plugin for Konqueror about 2 years ago…

svn://anonsvn.kde.org/home/kde/trunk/playground/utils/khtml_userscript

I tried running it again but couldnt get it to install, but it should be really easy to fix and make it work with your script (would just have to add in the INCLUDES facility…)

If it is just javascript, Tue, 09/21/2010 - 23:33 — George Kiagiadakis (not verified)

If it is just javascript, can’t you just embed it in the html that bugzilla sends and let the client run it? I don’t see how it could make bko slower.

Running javascript (at least Wed, 09/22/2010 - 04:21 — Milian Wolff

Running javascript (at least up until now, in future you can use WebWorkers) hogs up the UI thread of the browser if it’s slow. And highlighting text, esp. imagine lots of long backtraces in a single bug, would be slow enough to make the browser noticeably slow for a short time. That’s why I’m reluctant. But I’d like to add it in a customizable way (i.e a user setting) to bugzilla, lets see whether I manage to get around doing it eventually.

i tried installing it in Tue, 09/21/2010 - 14:27 — Anonymous (not verified)

i tried installing it in chrome, but it had no effect. it is marked as installed and all, but i don’t see any hightlight.

Nice :) But I agree with Tue, 09/21/2010 - 00:26 — moltonel (not verified)

Nice :) But I agree with anonymous : BKO is the correct place to implement this. A greasemonkey script is just too much bother, and even with a big fat “install me” link on the BKO website, 95% of users won’t install the thing. Also, outputing colorized html directly is arguably cleaner than colorizing via javascript.

can’t download the script Mon, 09/20/2010 - 23:15 — Aaron Seigo (not verified)

can’t download the script from the link, i’m getting: “You don’t have permission to access /~milianw/bko_highlighter.user.js on this server.”

doh, fixed face palm Tue, 09/21/2010 - 11:39 — Milian Wolff

doh, fixed face palm

I love you highlighting man Mon, 09/20/2010 - 21:51 — afiestas (not verified)

I love you highlighting man :D

Build it into BKO directly, Mon, 09/20/2010 - 21:13 — Anonymous (not verified)

Build it into BKO directly, make it optional, only enable when the user requests it. Or make it a per-user setting.

I agree: Awesome.

Opera supports this since Mon, 09/20/2010 - 20:57 — xpete (not verified)

Opera supports this since long ago… http://www.opera.com/docs/userjs/

you can get some examples here: http://userjs.org/

Post new comment

  • 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