4

How do I prevent VS from showing user the following warning:

No Debugging Information Debugging information for 'MyExe.exe' cannot be found or does not match. Cannot find or open the PDB file. Do you want to continue debugging?

In my situation the user of my product wants to develop a plugin and (s)he want to debug it. There is appropriate configuration in VC++ project so that when (s)he presses F5 then my application will start and load the plugin. However, VS complains about lack of debugging information. While in general lack of valid debugging information is a valid concern, in this case I don't want to deliver .pdb file for MyExe.exe (user has no reason to debug my MyExe.exe application). Is there a way to prevent VS from searching for debugging information for MyExe.exe?

3
  • Check what is set on Generate Debug Info under Project Propeties > Configuration Properties > Linker > Debugging. That should be set to Yes(/DEBUG) to avoid No Debugging Information Debugging information for 'MyExe.exe'
    – Mahesh
    Jan 11, 2011 at 0:28
  • Never tried that but what about giving a "stub" PDB? Empty file, or a real PDB that was generated for an "empty" MyExe.exe, or something like that.
    – Poni
    Jan 11, 2011 at 1:35
  • @Mahesh: The value was set to /YES, but it requires deploying .pdb file and I would like to avoid that. Jan 11, 2011 at 8:35

2 Answers 2

1

You don't say which version and edition of VS your customer is using, but at least in VS 2005 and VS 2010, open Tools->Options->Debugging->General, there is a list of settings, scroll down, find the "Warn if no symbols on launch (Native only)" setting and clear the check mark.

I believe that this will accomplish what you're looking for, in that the dialog won't pop up unless/until the debugger stops in your code. If it stops (or hits a breakpoint) in the customer's plugin, then it should be able to find the symbols, and I think it won't cause the popup.

1
  • I'm using VS2008/VS2010. I was hoping for project level setting but it seems there is only global option (that I should probably not modify for my users)... Feb 4, 2011 at 21:13
0

I don't believe you can turn off VS's messaging about missing or mismatched PDB's, however, you might be able to create PDB using the /PDBSTRIPPED option when building -- this will give the user a .pdb containing minimal information (just the public symbols, basically).

5
  • Unfortunately VS still shows the warning if I use the minimal .pdb file. The text is slightly different: 'Symbols loaded (source information stripped).', but I cannot consider this as a solution to my problem... Jan 11, 2011 at 8:39
  • Why is it so important to hide the message? Don't these appear in the output window anyhow? I don't think you can do anything about them, short of maybe writing a VS add-in to replicate the functionality of the output window but allow you to strip certain messages out.
    – user197015
    Jan 11, 2011 at 15:29
  • It's not in the output window, it is a big ugly dialog box. Ok, it is not a critical issue, but still it would be nice to prevent it from popping up as it will just cause confusion. Jan 11, 2011 at 22:01
  • 1
    Oh that's interesting, I don't think I've ever seen a dialog box with that message in it. That would be more annoying, hm...
    – user197015
    Jan 11, 2011 at 23:17
  • 'My' dialog has 'do not show again' checkbox. Maybe after checking it it will just show in the output window (cannot check right now)... But where is the information saved/how do I change this setting from my code (vspackage). Jan 12, 2011 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.