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 8104457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:50:54+00:00 2026-06-05T23:50:54+00:00

I am using ubuntu 12.04 and Qt Creator 2.4.1. It builds my C code

  • 0

I am using ubuntu 12.04 and Qt Creator 2.4.1. It builds my C code by default GCC.

I am debugging my program (Qt Creator (uses GDB)) and can already see lots of variables that would be called/created in the later steps of the program. Is it normal to see all variables in the beginning of the program? In another word, do I see the variables in the early stage of the program because of the debug option (-g)? For example, I ‘step into’ the code and stops in the first step which is int main() a busy cat

char[1000] mesg; is executed on the 129th line however, I can see it and its memory address already. or int tem_hopt_dist=0; is on the line 230 but I already see its value as ‘3’.

  • 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-06-05T23:50:55+00:00Added an answer on June 5, 2026 at 11:50 pm

    Yes, this is normal. The debugger does not understand all the scoping semantics of the language, and displays data as if all the variables were initialized in their final memory locations even when they’re out of scope.

    Some debuggers are better than others. This is a frequent source of irritation, for example if you are in the habit of having separate index variables all called i, and the debugger won’t differentiate between them.

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

Sidebar

Related Questions

I am using Ubuntu 9.10 For a particular piece of code I require GCC
Im using Ubuntu 10.10, Code::Blocks with GCC 4.2. I have written a code like
I'm using Ubuntu and Qt Creator 4 I have a .cpp program in the
I'm using Ubuntu 8.10 (Intrepid Ibex) and compiling C++ files with GCC, but when
I'm using Qt Creator on Ubuntu to develop C. Whenever I run with the
Using Ubuntu, what steps should I take to compile Go source code into a
How I can build native C++ files using Qt Creator. I want to write
I'm using Ubuntu 12.04 I tried to change my default apache2 port from 80
I'm using Ubuntu with Gnome where I can set network proxy settings (with authentication).
I am using Ubuntu 9.04 I have installed the following package versions: unixodbc and

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.