C#的调试问题:没有符号加载任何调用堆栈帧 [英] C# debugging issue: No symbols are loaded for any call stack frame

查看:196
本文介绍了C#的调试问题:没有符号加载任何调用堆栈帧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图步入从一个C#Web服务的DLL外部DLL中引用的方法。我正在开发Web服务代码,可以从我的Winforms应用程序踏进去。我试图步入从Web服务的DLL是由别人开发的,我有dll和pdb文件。当我尝试踏进去我得到以下信息:

I'm trying to step into a method referenced in an external dll from a C# web service dll. I'm developing the web service code and can step into it from my Winforms app. The dll I'm trying to step into from the web service was developed by someone else, and I have the dll and pdb files. When I try to step into it I'm getting the message below:

没有符号加载任何调用堆栈帧。该源代码无法显示

'No symbols are loaded for any call stack frame. The source code cannot be displayed'.

下面是我的项目设置:


  • .NET 3.5,VS 2008专业版,IIS 7的Vista旗舰版上运行

  • 的WinForms应用WF1.exe,引用Web服务的DLL WS1.dll,在1解决方案在我的机器

  • 数据库访问的DLL DA1.dll其他开发人员,由WS1.dll引用编译
  • 位于WS1 Web服务的根目录
  • DA1.dll和DA1.pdb文件项目

  • 结集出版我的本地IIS
  • WS1 Web服务,DA1.dll和DA1.pdb文件被复制到IIS WS1 bin目录

  • .NET 3.5, VS 2008 Professional, IIS 7 running on Vista Ultimate
  • Winforms app WF1.exe, referencing web service dll WS1.dll, in 1 solution on my machine
  • Database access dll DA1.dll compiled by another developer, referenced by WS1.dll
  • DA1.dll and DA1.pdb files located in root directory of WS1 web service project
  • WS1 web service compiled and published to my local IIS, DA1.dll and DA1.pdb files get copied to the IIS WS1 bin directory

到目前为止好,一切工作为一个点。我打破并踏入WF1.exe然后分解,并加强插入WS1.dll没有问题的方法。然而,当我尝试步入上DA1.dll发生错误的方法。任何帮助表示赞赏。

So far so good and everything works to a point. I break and step into WF1.exe then break and step into a method on WS1.dll no problems. However when I try to step into a method on DA1.dll the error occurs. Any help appreciated.

(也意味着说我贴在WebDev.WebServer.EXE过程中要尽量和步入DA1)

(Also meant to say I attached to the WebDev.WebServer.EXE process to try and step into DA1)

干杯,

夏兰

推荐答案

当你正在调试你可以加载符号,一个DLL通过转到调试 - >视窗 - >模块

When you are debugging you can load symbols for a dll by going to Debug -> Windows -> Modules

右键单击相应的DLL和选择加载符号从 - >符号路径

Right click the appropriate dll and Select Load Symbols From -> Symbol Path

如果你继续有这个麻烦,只是想看看什么是引擎盖下怎么回事,你可以打开反射器的DLL。

If you continue to have trouble with this and just want to see what is going on under the hood, you could open the dll in Reflector.

这篇关于C#的调试问题:没有符号加载任何调用堆栈帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆