几千年没写随笔了,今天做VS。NET开发遇到DEBUG调试失败,找到了解决方案,在这留着以后有用呢。
2005-09-20 21:09
375 查看
自己的解决方案。
1、把RELEASE变为DEBUG
2、enabled debugging ASP.NET为true
3、把目录下的BIN和OBJ目录删除掉,然后再生成一遍。(因为BIN和OBJ里面的PDB文件保存了调试的信息的)
4、再不行就重新注册一次IIS看看。
5、'Generate Debugging Information'
不行就参考以下资料。
It sounds like the symbols you have are not lining up with the binaries
you're generating. Do the following:
1. Verify that you are in debug mode and not release mode.
2. Verify that the timestamp of the .pdb file is the same as the .dll or
.exe that you're generating. If they are not, remove all of the binaries
and recompile your entire solution.
3. If the additional assemblies you are trying to debug are not part of
your solution (i.e. other projects), go under the properties for the
solution and be sure to include the "Debug Source Files" and "Debug
Symbol Files" locations of the additional assemblies you're trying to debug.
there are 4 points to look for :
1/uninstall and reinstall your aspnet process
aspnet_regiis -u to uninstall
aspnet_regiis -1 to reinstall
2/check if you're not in realease mode for all projetcs in your solution
3/in the project properties options check if "enable ASP.NET debugging" is set to true
4/ and the very last one not found in previous posts
in the project properties options : "common properties/general/startup object"
it must be set to "not set"
if you set it to your startup page it wont work and aspnet won't be abble to load all debugging informations in the pdb file.
comment : this works for the C# projects, didn't checked with other languages.
1、把RELEASE变为DEBUG
2、enabled debugging ASP.NET为true
3、把目录下的BIN和OBJ目录删除掉,然后再生成一遍。(因为BIN和OBJ里面的PDB文件保存了调试的信息的)
4、再不行就重新注册一次IIS看看。
5、'Generate Debugging Information'
不行就参考以下资料。
It sounds like the symbols you have are not lining up with the binaries
you're generating. Do the following:
1. Verify that you are in debug mode and not release mode.
2. Verify that the timestamp of the .pdb file is the same as the .dll or
.exe that you're generating. If they are not, remove all of the binaries
and recompile your entire solution.
3. If the additional assemblies you are trying to debug are not part of
your solution (i.e. other projects), go under the properties for the
solution and be sure to include the "Debug Source Files" and "Debug
Symbol Files" locations of the additional assemblies you're trying to debug.
there are 4 points to look for :
1/uninstall and reinstall your aspnet process
aspnet_regiis -u to uninstall
aspnet_regiis -1 to reinstall
2/check if you're not in realease mode for all projetcs in your solution
3/in the project properties options check if "enable ASP.NET debugging" is set to true
4/ and the very last one not found in previous posts
in the project properties options : "common properties/general/startup object"
it must be set to "not set"
if you set it to your startup page it wont work and aspnet won't be abble to load all debugging informations in the pdb file.
comment : this works for the C# projects, didn't checked with other languages.
相关文章推荐
- 开发时遇到vs无法进入调试断点 解决方案分享
- VS2013新建asp.net空网站项目失败,配置IISexpress失败,未能找到web服务器“http://localhost”解决方案
- 今天才明白VC++.net的含义: VS系列的c++编译器可以支持托管C++(类似于C#,具体请看MS在线文档),当然包括winform界面开发。
- 自定义可视化调试工具(Microsoft.VisualStudio.DebuggerVisualizers)vs.net开发工具
- 最近遇到VS.Net的两个问题--无法调试,未加载符号和后台代码无法调用控件
- vs.net 2005, 没有找到MSVCR80D.dll的解决方案
- VS.net 2005, 没有找到MSVCR80D.dll的完美解决方案
- iOS陆先森开发随笔(三)iOS调试技巧(debug)
- Windows 7 使用 VS.NET 2003 时遇到“LNK1201: 写入程序数据库时出错”的解决方案
- 好久没做.Net开发了,今天配置IIS和.Net Framework 4.0遇到点问题
- 今天遇到一个Extjs窗口层次问题,找了半天找到一篇有用的
- Android开发调试中遇到的Waiting for HOME解决方案
- VS2013出现“无法找到“xxx.exe”的调试信息,或者调试信息不匹配”错误解决方案
- 配置ASP.NET平台时遇到的“访问IIS元数据库失败”--解决方案
- 配置ASP.NET平台时遇到的“访问IIS元数据库失败”--解决方案
- 今天安装VS.NET 打开网站错误提示:无法在WEB服务器上启动调试..
- vs.net 2005, 没有找到MSVCR80D.dll的完美解决方案
- vs.net 2005没有找到MSVCR80D.dll的解决方案
- 使用IE8开发工具调试时,遇到“无法附加进程,进程可能附加了另一个调试程序”的解决方案
- 转: vs.net 2005, 没有找到MSVCR80D.dll的完美解决方案