Vs在win7环境下不能debug有多种原因,一下列出相关解决办法。

当运行程序debug某个页面的时候,加入断点的位置总是提示

"the source code is different from the original version",真是懊恼呀!没有关系让我们来解决它!

1.在vs2008图标上右击选择Properties,然后选择Compatibility tab,勾选掉

Run this program in compatibility mode for: 如下图所示:

2.检查一下VS2008 ToolBar属性设置

3.检查Configuration Manager(这里截图Configuration 都是Release Status,如果你上面的步骤选择之后还是不能debug,那就把它们都设置为Debug吧:) )