How can I prevent Visual Studio from warning about lack of debugging information?

How to prevent VS from showing the user the following warning:

No debugging information. Debugging information for "MyExe.exe" could not 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 (and) he wants to debug it. There is a corresponding configuration in the VC ++ project, so that when I press (s), press F5, then my application will start and load the plugin. However, VS complains about the lack of debugging information. Although in general the lack of reliable debugging information is a serious problem, in this case I do not want to deliver the .pdb file for MyExe.exe (the user has no reason to debug my MyExe.exe application). Is there a way to prevent the search for VS debugging information for MyExe.exe?

+4
source share
2 answers

You do not say which version and version of VS your client 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 "Warn if there are no characters when launch (only for relatives) "and uncheck.

I believe that this will accomplish what you are looking for since the dialog will not appear until / until the debugger stops in your code. If it stops (or hits a breakpoint) in the client plugin, it should be able to find characters, and I think this will not cause a popup.

0
source

I do not believe that you can turn off the VS message transmission about missing or inconsistent PDBs, however you could create a PDB using the /PDBSTRIPPED when creating - this will give the user .pdb containing minimal information (mostly public characters).

0
source

Source: https://habr.com/ru/post/1335009/


All Articles