Bug 72182

Summary: global variables in debugger
Product: [Applications] kdevelop Reporter: Jon Smirl <jonsmirl>
Component: CPP DebuggerAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED INTENTIONAL    
Severity: wishlist    
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Jon Smirl 2004-01-08 20:32:08 UTC
Version:           CVS (using KDE Devel)

There doesn't seem to be any way to see the global variables for the app. Shouldn't there be a tree branch for those that I can open to see them?

I can always add watches manually, but that is a pain.
Comment 1 Jens Dagerbo 2004-01-08 20:36:49 UTC
Wish.
Comment 2 Vladimir Prus 2005-05-18 12:25:37 UTC
I think this can be problematic. "info variables" in gdb will print all global variables, including those from libstd++, such as:

   const _Ios_Fmtflags std::ios_base::boolalpha;
   const _Ios_Fmtflags std::ios_base::dec;
   const _Ios_Iostate std::ios_base::eofbit;
   const _Ios_Iostate std::ios_base::failbit;

and all static constants for all classes. For a simple app, I get several pages, and all symbols are reported to be defined in my .cpp file.
Unless there's some sensible way to filter irrelevant variables, adding them
all to variables view would not help.


Comment 3 Andreas Pakulat 2008-06-29 17:22:27 UTC
as far as I can see this is a wontfix, especially as you can just add a watch for your global variables.