Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 851681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:28:06+00:00 2026-05-15T07:28:06+00:00

When stopped at a breakpoint on main(), i can manually add name of a

  • 0

When stopped at a breakpoint on main(), i can manually add name of a global variables to watch windows, but what i want is how to show a list of all global variables, because i’m using an external library, which contains many static things.
Is it possible?
Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T07:28:07+00:00Added an answer on May 15, 2026 at 7:28 am

    Is the problem that you don’t know the global variable names?
    Or is the problem that you want to look at many global variables and don’t want to type them over and over again in the watch window?
    For the moment I assume the second. I also assume that your external library is a .LIB library and not a .DLL.

    You could write a class that contains one member for every global variable you want to watch, make it a reference, and construct an instance of the class at startup, assigning the global variables to the reference members, like this:

    class MyGlobalVariableClass
       {
       public:
          MyGlobalVariableClass()
          : m_var1(globalVariable1OfExternalLibrary)
          , m_var2(globalVariable2OfExternalLibrary)
          {}
       private:
          long   &m_var1;
          double &m_var2;
       };
    MyGlobalVariableClass myGlobalVariableInstance;
    

    Now you can just enter myGlobalVariableInstance in the watch window, expand it, and you will see all its members, and thus all the global variables.

    This trick assumes that you know all the names of the global variables.
    If you don’t, you could try to use DUMPBIN to investigate the contents of the LIB of the external library, and try to deduct the variable names from the output of DUMPBIN.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When the debugger is stopped at a breakpoint, I can't find the frame of
Is it possible... when the debugger is stopped at a breakpoint, to modify the
When I'm stopped at a break point in Xcode, I can see the value
Normally in Visual Studio, a watch cannot be evaluated unless the debugger is stopped
Is this possible? Basically, what I want to do is, when I am stopped
It used to be that when I stopped at a breakpoint in Google Chrome,
I have an object of the class RTSG::XML3D::OpenGLMeshMA. When stopped at the breakpoint in
I stopped programming for about a half a year and yesterday I set up
All my javascripts stopped working in production when I compiled them into application.js. I
I've stopped using Hungarian notation everywhere except in the UI, where often I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.