RemedyBG » Forums » class objects debugging
Vawx
Kyle
2 posts
#21071 class objects debugging
3 months ago Edited by Kyle on May 21, 2019, 2:47 a.m. Reason: Initial post

When hitting break points within class constructors, any class members are shown as "?".

When hitting break points that are in scope of the class object, the debugger shows it as a "class object" but wont show any members and instead shows { ... }.

I am guessing this is intended but wanted to make sure.

Thanks.
x13pixels
130 posts / 1 project

None

#21076 class objects debugging
3 months ago

To be frank, I haven't done much testing at all with C++ code. I'll make a note to take a look at this though. Thanks for letting me know.

--
George
Vawx
Kyle
2 posts
#21079 class objects debugging
3 months ago Edited by Kyle on May 23, 2019, 3:35 a.m.

Same thing happens if static variables are stored in a namespace.

As an example:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
namespace Input
{
    struct input
    {
        key Keys[KeyCount] = {};
        
        int32 MouseX = 0;
        int32 MouseY = 0;
        
        bool bIsBlocked;
    };
  
    static input InternalInput = {};  
};


1
Watching window shows: "identifier 'InternalInput' not found"


This happens even in functions that are in the same namespace.