This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED]Debugging: Viewing object's members

Tags: None
(comma "," separated)
mongrel
Registered Member
Posts
10
Karma
0
Hi, it's my first time using Kdevelop and I was very impressed that it can import an existing cmake project easily.

My question is about its debugging feature. When debugging, can I see the values of the members and the returned values of functions of an instance object?

This is from the answer I received when I asked the same question here->http://stackoverflow.com/questions/18941903/debugging-object-instance
You can now expand objA in the Watch window, to see values of its members, which is name in this case. Keep in mind that you may be able to see value of name before objA is initialized, but again, that would be a garbage value.

I don't know if KDevelop supports watching functions. But you can do this in Visual C++.

Does kdevelop has this capability? Because when I tried, there is no button to expand the object in the Watch window.

Edit:
Because when I tried, there is no button to expand the object in the Watch window.

It works except for the classes from a static library. I think I need to point it to the source, but how?

Last edited by mongrel on Sun Sep 22, 2013 1:16 pm, edited 1 time in total.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
You might need the library with debug symbols, I'm not sure. Do you have that?

Cheers


I'm working on the KDevelop IDE.
mongrel
Registered Member
Posts
10
Karma
0
That's the problem. I just found out that the libs I linked don't have debug symbols. I'm sorry I'm not that experienced with building c++ projects or cmake stuff. :<

I will try to produce the libs again. Thanks.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]