调试窗口服务给出没有符号已加载消息 [英] debugging windows service gives No symbols have been loaded message

查看:121
本文介绍了调试窗口服务给出没有符号已加载消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows服务,我已经在服务的Onstart方法中编写了Debugger.Attach()。
当我启动服务时,我收到一个弹出窗口,要求选择调试器实例。
当我选择并按OK,视觉工作室成为焦点,但显示我没有符号已经加载消息



谢谢

解决方案

我按照两个步骤
1.从这里 http://geekswithblogs.net/dbutscher/archive/2007/06/26/113472.aspx



在Visual Studio中调试时,单击Debug> Windows> Modules。 IDE将停靠模块窗口,显示已为您的项目加载的所有模块。
查找你的项目的DLL,并检查它的符号状态。
如果它表示符号加载,那么你是金色的。如果它显示无法找到或打开PDB文件,请右键单击您的模块,选择加载符号,然后浏览到PDB的路径。



2 goto Debug->选项和设置 - >
在调试节点下 - >一般...取消选中只是我的代码复选框



它工作...


i have a windows service and i have written Debugger.Attach() in the Onstart method of the service. When i start the service i get a popup which asks to select the debugger instance. when i select and press ok, the visual studio comes into focus but shows me "No symbols have been loaded message"

Thanks

解决方案

I followed two steps 1.from here http://geekswithblogs.net/dbutscher/archive/2007/06/26/113472.aspx

While debugging in Visual Studio, click on Debug > Windows > Modules. The IDE will dock a Modules window, showing all the modules that have been loaded for your project. Look for your project's DLL, and check the Symbol Status for it. If it says Symbols Loaded, then you're golden. If it says something like Cannot find or open the PDB file, right-click on your module, select Load Symbols, and browse to the path of your PDB.

2 goto Debug-> options and settings -> under the debugging node -> general ...uncheck "just my code" checkbox

and it worked...

这篇关于调试窗口服务给出没有符号已加载消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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