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了。
本文详细介绍了在Debug过程中遇到的MessageBox警告问题及其解决方案。通过调整项目编译配置,关闭优化选项并选择完整的调试信息,成功解决了调试时出现的警告信息。
421

被折叠的 条评论
为什么被折叠?



