(VS) The module below was generated with optimizations enabled or no debug information

write picture description here

The debugging project encounters an error message, Visual Studio 2012, when the debugging is started, a prompt message pops up:

The following module was generated with optimizations enabled or no debug information:

reason:

When debugging, the pdb file with the same name will be used. If the version of the pdb file cannot be consistent with the dll file version when building, the debugging information will not be found.

Several solutions:

1. Right-click "Solution" and select "Configuration Manager", set the "release" bit to "debug"
2. Tools -> Options -> Debugging -> General -> Disable "Start My Code Only"
3. Modify web.config, set

4. Manually copy the pdb file corresponding to the dll.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324739253&siteId=291194637