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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:11:30+00:00 2026-05-11T08:11:30+00:00

Has anyone ever been debugging in Visual Studio and it appears to execute different

  • 0

Has anyone ever been debugging in Visual Studio and it appears to execute different code then the code that is being stepped through? Sometimes it even steps into what appears to be white space in the file that is being stepped through but VS is executing something anyway?

I’ve had this happen several times, once someone had me clear something in the Application Data directory under the user directory. However I can’t remember what that was and wondered if anyone had some ideas.

  • 1 1 Answer
  • 2 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. 2026-05-11T08:11:31+00:00Added an answer on May 11, 2026 at 8:11 am

    There are four most possible reasons.

    Reason 1: you actually started not the compilation result but some other file. Path to the executable to start is set on the ‘Debugging’ page of the project properties.

    Reason 2: you have optimization on. In this case the compiler only saves line of code – to compiled code information for some code and not for other. You’ll see that after you press ‘step over’ you actually jump several statements ahead or that you can’t access some variables values. Either turn off optimization or switch from interactive debugging to logging.

    Reason 3: the program database (the .pdb file storing bindings of lines of code to compiled code) is out of sync with the compiled file. ‘Rebuild’ project usually helps.

    Reason 4: the program database (see reason 3) in the folder where the executable is located is out of date because VS puts the program database elsewhere on each compilation). Path where to put the .pdb file is set in the linker properties of the project.

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

Sidebar

Ask A Question

Stats

  • Questions 372k
  • Answers 372k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer oh.. PHP Smarty is a PHP templating engine. It doesn't… May 14, 2026 at 7:13 pm
  • Editorial Team
    Editorial Team added an answer Are you sure your other views aren't using a UIViewController?… May 14, 2026 at 7:13 pm
  • Editorial Team
    Editorial Team added an answer Define the WindowButtonDownFcn of your figure callback using the set… May 14, 2026 at 7:13 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.