Registered Member
|
When debugging, after stepping over a line with a variable, the button used to expand the variable disappears.
Here, before I step over lightNode, the expand button is showing and working. But after I step over it, the button disappers. It is the same to all variables. Last night, everything works perfectly. I then decided to use Kdevelop as my IDE and uninstalled other applications like CodeBlocks and Monodevelop. I think there are packages that are also removed last night that affects Kdevelop's behavior because my Software Manager is also not functioning right (Installing Kdevelop takes 68mb but removing it only frees 5mb). I already tried cleaning and updating. Also reinstalling Kdevelop a few times but it's still the same.
I'm using Linux Mint 15 64bit. Kdevelop 4.4.1 |
Global Moderator
|
I doubt this is an installation problem.
Sizes calculated by package managers are often wrong in my experience, I'd ignore them. As for the actual issue, the value of the pointer changes -- sure it's still valid after that line? Do you maybe even have a minimal example I could test? Greetings, Sven
I'm working on the KDevelop IDE.
|
Registered Member
|
Hi, I'm sure its valid because its the same code I tested the night before which works fine. Plus, it is a template generated by the library I used.
Anyway, I reinstall my os and I will try Kdevelop again. I will let you know if it's fixed. |
Global Moderator
|
As said I doubt it's a setup issue. It'd probably make more sense to post some example code which reproduces the issue.
I'm working on the KDevelop IDE.
|
Registered Member
|
I tested the code and the library I used in Eclipse CDT and this is what I got
The library I used is not mine, it is a game engine which can be found here- https://github.com/blackberry/GamePlay. The code I tried to debug is this https://github.com/blackberry/GamePlay/tree/master/template/src. The engine has a script to create a new project and it uses the template as a new project which is already a valid program that can be executed. Here is the CmakeList.txt of the engine. I don't know if it matters but I only build the gameplay library and commented out the samples because it is too big to download.
This is how I produce the library.
This problem does not concern Kdevelop anymore, but any help is highly appreciated |
Registered Member
|
I tried it with this very simple code and its still the same. I already reformatted my computer and its the same with other IDE like Eclipse CDT. It's been days and I still have this problem. I already tried in different forums and stackoverflow.com but still no solution.
Here, I still cannot check the members of obj, the expand button disappears.
|
Global Moderator
|
At which point does the button disappear, i.e. when you steop over which line?
I'm working on the KDevelop IDE.
|
Registered Member
|
After I step over this line
I don't know if this is related but I have this when I execute the code
|
Global Moderator
|
I didn't quite understand that... at which points does it work, and when does it stop working?
I'm working on the KDevelop IDE.
|
Registered Member
|
I recreated the test code.
Here, when I begin debugging. In the Variables window, the expand button (+ button beside the variable) is showing. After I step over the line instantiating variable a, the button disappears. Hovering the mouse over object a. The problem I said in the previous reply |
Global Moderator
|
That's indeed strange. Did you try if the problem also occurs in command-line gdb?
Greetings
I'm working on the KDevelop IDE.
|
Registered Member
|
I do not know how to use gdb via command line. I always use an IDE when coding.
|
Registered Member
|
Maybe the problem is in gdb version? I have this version - GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu
Don't you have any problems when debugging? What version of gdb are you using? |
Global Moderator
|
I have 7.6.1...
Using it in CLI is quite easy, do this: gdb <program name> break main.cpp:linenumber run ... then it will stop at the breakpoint you set, you can do "list" to see the surrounding code print foo->bar will print property bar of pointer foo. next will step to the next line. If it works there, then it's an issue in kdevelop; if not, there's a different problem. Possibly this is related to optimization gcc does...? Greetings, Sven
I'm working on the KDevelop IDE.
|
Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]