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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:18:29+00:00 2026-06-17T22:18:29+00:00

Step 1: I build myProgram.exe and generate myProgram.pdb alongside it. Step 2: I deliberately

  • 0
  • Step 1: I build myProgram.exe and generate myProgram.pdb alongside it.
  • Step 2: I deliberately cause a crash in myProgram.exe.
  • Step 3: I get asked if I want to use Visual Studio as a debugger, and I do that.
  • Step 4: Visual Studio loads the symbols from myProgram.pdb.
  • Step 5: I check the call stack to identify the (known) place where the crash occurred.
  • Step 6: I don’t frown or look perplexed, because this is how it should be.

However, if I rename myProgram.exe and myProgram.pdb to SomethingElse.exe and SomethingElse.pdb and repeat these steps, results are mixed from Step 4 onwards. As far as I can tell, on my build machine, VS will always load symbols successfully from the renamed PDB file. However, on my remote target machine, VS will never load symbols – it always tells me that the PDB file does not match the executable. Why not? Is there an obscure rule I am breaking? I am running Visual Studio 2005 everywhere in case that matters.

  • 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-17T22:18:30+00:00Added an answer on June 17, 2026 at 10:18 pm

    The simple subtle rule being broken here is that the PDB file name appears to be encoded into the EXE file, not derived from the EXE file name. So, for example, if you create “Copy of myProgram.exe” and “Copy of myProgram.pdb” by a simple copy-and-paste in Windows Explorer, it can appear that symbols are being loaded despite the name change. But this will only work so long as the original “myProgram.pdb” file is also present – if you remove “myProgram.pdb” and only have “Copy of myProgram.pdb”, the symbols may be compatible, but Visual Studio will not even try to load them.

    In a quick-and-dirty test on a remote machine in my office, all that changed was the file name, not the file version, whereas on the actual remote machine, both name and file version were different, so it was never possible for things to appear to work.

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

Sidebar

Related Questions

For a post-build step on our build server I want to get all projects
For reference, I'm using Visual Studio 2010. I have a custom build step defined
I'm using a custom build step to generate gSoap code from a .wsdl file
I have a visual studio 2005 project with a custom build step that copies
I want to copy binaries to stage server as the last step of build.
I want to get a (semi-colon separated) list of all .dll and .exe in
I'm trying to perform the following post build step in a VS2008 project: sn.exe
I've added a custom build step to my Visual Studio project files which generates
I want to configure a post build step that copies the binary via ssh:
I want to run a pre-build step shell/perl in a Jenkins job, and given

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.