VS2010调试The following module was built either with optimizations enabled or without debug informatio

1.situation:每次Debug的时候, 都会弹出一个MessageBox, 内容如下:

The following module was built either with optimizations enabled or without debug information:C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\mibasic020\beb55a49\8958f567\assembly\dl3\1be27651\7da51cc3_737dd501\MIBASIC020.dllTo debug this module, change its project build configuration to Debug mode. To suppress this message, disable the 'Warn if no user code on launch' debugger option.

如图:

                                   

2.Solution:

    (1)检查了Config中的设置,没有问题,debug=true是为Debug模式;

    (2)接着检查了IIS的应用程序池的设置,也没有问题;

    (3)然后检查Project的属性properties中Compile的设置:Advanced Compile Option…

      即右击Project-->properties-->Compile-->Advanced Compile Option…:

                不勾选:Enable optimizations

              Generate debug info:选择Full

如图:

        

修改后可以正常Debug了。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值