Bug 81713 - Clickable debug output jumps to file/line
Summary: Clickable debug output jumps to file/line
Status: RESOLVED DUPLICATE of bug 123886
Alias: None
Product: kdevelop
Classification: Applications
Component: Output Views (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-16 22:46 UTC by Linus McCabe
Modified: 2007-01-07 15:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Linus McCabe 2004-05-16 22:46:48 UTC
Version:            (using KDE KDE 3.2.1)
Installed from:    Debian testing/unstable Packages

It'd be neat if you could doubleclick on a line in the application output and then the line was scanned for a filename and linenumber and the editor brought to that location. Like when you click a line in the "grep" output.
It'd then be easy to add kdDebug lines like 
kdDebug(24000) << k_lineinfo << "xxx" << endl;
and while 'backtracing' the debug output you could simple click your way  back and forth.
Comment 1 Jens Dagerbo 2004-05-20 14:31:14 UTC
Not a bad idea at all. I'll take a look at this.
Comment 3 Jens Dagerbo 2004-05-20 23:44:00 UTC
Yes, you're right, Daniel. This is clearly related. Even overlapping to some extent.

I haven't looked yet at how easy this part would be to implement, but if it's as relatively simple as I think, I'll try to do it for 3.1. Alexanders plans about using konsolepart is probably a too large change to happen for the next release. I also don't think simply embedding konsolepart will work. Maybe we can fork it.. ;)
Comment 4 Jens Dagerbo 2004-05-21 00:45:25 UTC
Heh. After having a look I realize this is already implemented. Asserts and k_lineinfo are already supported. In my brief tests, this worked perfectly. 

Linus, what are you missing?
Comment 5 Linus McCabe 2004-05-21 11:52:45 UTC
I updated my CVS tree, recompiled and installed (version showing 3.0.90-CVS).
I have kdDebug lines like:
  kdDebug(24000) << k_lineinfo << ", command: " << command << ", data " << data << endl;
In the application output of kdevelop, I get:
Quanta: [/home/..etc/file.cpp:518], command: wait,data 
as expected, but no matter how much I double click it wont jump the the right file/line. (It wont jump at all, to be precise)

Could it be that I'm not running KDE from CVS?

If it works for you, I guess it's implemented and its something wrong with my system rather than kdevelop.

/LInus
Comment 6 Jens Dagerbo 2004-05-21 23:50:55 UTC
Well.. the fact that it doesn't appear to produce a full path is clearly the problem. There is a regexp to retrieve the path from a k_lineinfo formatted output, but there is no logic to guess the path when it's not complete.

Comment 7 Linus McCabe 2004-05-21 23:56:12 UTC
It does produce a full path, I just shortened it since I couldnt copy it from the output window. (Never pays off to be lazy, I suppose)
Comment 8 Jens Dagerbo 2007-01-07 15:33:16 UTC
I guess if it doesn't work (and there will always be cases when it can't) then it's a bug, and if it's a bug it's a dupe...

*** This bug has been marked as a duplicate of 123886 ***