News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Debugger freez on watch content of class

Started by ysern, August 23, 2013, 11:13:18 PM

Previous topic - Next topic

ysern

Hello,

the debugger in C::B doesn't not respond after i try to watch the content of any class. These classes can be even not so complicated. For example AxisAlignedBox type from Ogre3D. The problem is all the time reproducible. I tried "set print elements 200", didn't fix that.

The version of C::B is 12.11,
                       gdb: 7.4.1+dfsg-0.1

My system based on AMD x64 CPU

oBFusCATed

Do you have a minimal code sample that reproduces the problem?
Does your class have a static member of the same class type?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

ysern

#2
Hi oBFusCATed, thank you that you try to help me.

In my project i use OgreKit library.

There are a lot of classes that cause the debugger freeze problem. For example this quite simple  one: http://code.google.com/p/gamekit/source/browse/branches/OgreKit/OgreLite/OgreMain/include/OgreAxisAlignedBox.h?r=151. It has static members of the same class type. Is it a problem for debugger?

oBFusCATed

Quote from: ysern on August 25, 2013, 11:55:37 PMIs it a problem for debugger?
Yes, it is, the debugger enters infinite recursion.
Put this line in the initial commands in the debugger settings and it will work fine.

set print static-members off
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

ysern

Quote from: oBFusCATed on August 26, 2013, 10:06:06 AM
Put this line in the initial commands in the debugger settings and it will work fine.

set print static-members off


Now it works. Very thanks oBFusCATed!