The Following Module was built either with optimizations enabled or without debug information

后端 未结 30 2065
离开以前
离开以前 2020-12-04 07:30

I cannot get rid of this in my VS 2008 web project when debugging. I\'ve checked that it\'s in debug mode on the non-web project in question and it\'s in Active(Debug). De

相关标签:
30条回答
  • 2020-12-04 08:23

    I get this issue as well, for some reason it's happened 3 or 4 times; I think it must be a Visual Studio 2005 bug/hick up (or at least my installation).

    This has worked every time: to fix it I

    1. Right click on my solution and click Properties.
    2. Open Configuration Manager.
    3. Select Debug in the drop down menu (if not already selected).
    4. Uncheck BUILD. Then re-check it.
    5. Rebuild the solution.
    0 讨论(0)
  • 2020-12-04 08:23

    I'm creating a Windows Service and here's what worked for me:

    • Uninstall the service.
    • Open a command prompt and go to c:\Windows\Microsoft.NET\Framework64\v4.0.30319
    • installutil C:\MyFantabulusWindowService\bin\Debug\MyFantabulusWindowService.exe

    Greatness has been achieved!

    0 讨论(0)
  • 2020-12-04 08:24

    Try disabling "Enable Just My Code" in Tools/Options/Debugging/Options.

    0 讨论(0)
  • 2020-12-04 08:24

    Check your build configuration options. Make sure optimizations are turned off and the DEBUG constant is defined.

    0 讨论(0)
  • 2020-12-04 08:24

    I too have all these. And I've done all this. It appears this happens to me every time I get a fresh copy of the entire solution out of source control. So if we've done all these, deleted dlls & .pdb files for all references (Assemblies) in the web project, used the clean option on the solution, deleted temp files, closed out VS and reopened, made sure debug mode is selected and set at full and optimations are off, what more is there?!?!?!

    0 讨论(0)
  • 2020-12-04 08:27

    The one configuration that worked for me was the following

    Project --> (Your Project) Properties --> Debug Tab make sure Configuration is set to Active (Debug) Under "Unable Debuggers", make sure "Enable unmanaged code debugging" is checked

    0 讨论(0)
提交回复
热议问题