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

后端 未结 30 2068
离开以前
离开以前 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:11

    Try a rebuild then debug.

    0 讨论(0)
  • 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'

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

    I was able to resolve this issue by following these steps:

    1. Right-click on the Solution (not the Project), and select 'Properties'
    2. In the left panel, select 'Configuration Properties'
    3. In the right panel, select 'Debug' under the 'Configuration' column for your project

    If you do not see the Solution listed in Solution Explorer, follow these steps:

    1. In the menu bar, go to Tools -> Options
    2. In the left panel, select 'Projects and Solutions' (you may need to check 'Show all settings' at the bottom-left area of the window
    3. In the right panel, check 'Always show solution'

    I hope this helps.

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

    Check out this link

    http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/43cb16ba-0759-42ab-8e7d-9f168ace3b6f

    try unchecking "Just My Code" in Tools->Options->Debugging->General.

    it works for me

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

    You mentioned it's a web project...do you have

    <compilation debug="true />
    

    in your web.config?

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

    I had this when trying to remote debug an application on a computer that belongs to a different subnet. I was able to debug and step through the code when running it across the network if the machines were on the same subnet. After changing the subnet though I was unable to step through when running from the network and was getting the "The Following Module was built either with optimizations enabled or without debug information".

    The solution? Easy. Copy the built solution across to the machine hosting the remote debugging and run it locally.

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