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

后端 未结 30 2123
离开以前
离开以前 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条回答
  •  猫巷女王i
    2020-12-04 08:12

    At least for non-web applications this works:

    From: http://www.stellarpc.com/articles/board.aspx?id=40

    2 - Allow Debugging...

    Due to the nature in which one of the assemblies has been built in your application, you will need to change a few settings to allow the code to be handled by the Visual Studio Debugger.

    Right click on any project in question from the solution explorer and select 'Properties'. This will open up the project properties panel giving us access to a great many options for our projects. Navigate to the 'Complile' Tab (or 'Build' if your in a C# environment) and select 'Advanced Compile Options...' from the bottom of the screen. This presents us with a prompt that has two key areas of interest:

    1) Optimizations - uncheck 'Enable Optimizations'

    2) Generate debug info - Ensure that the option is set to 'Full'

提交回复
热议问题