Bug 72182 - global variables in debugger
Summary: global variables in debugger
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdevelop
Classification: Applications
Component: CPP Debugger (show other bugs)
Version: git master
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-08 20:32 UTC by Jon Smirl
Modified: 2008-06-29 17:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.