断点当前不会被击中。没有为此文档加载符号 [英] Breakpoint will not currently be hit. No symbols loaded for this document

查看:86
本文介绍了断点当前不会被击中。没有为此文档加载符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我有一个用C#开发的开源Windows应用程序。有多个类库类型的项目。

I have a open source windows application developed in C#. There are multiple projects of type Class Library.

我想调试这个应用程序。当我在设置断点后尝试调试时,它在断点位置给出了一个错误:

I want to debug this application. When I tried to debug after setting a break point, it gives me an error at the breakpoint location :

"断点当前不会被命中。没有为此文档加载符号"

"Breakpoint will not currently be hit. No symbols loaded for this document"

我正在使用visual studio 2008.我必须使用它,因为项目很老,而且没有在最新版本中编译VS.

I am using visual studio 2008. I have to use this because project is very old and and not compiling in latest versions of VS.



我按照以下步骤解决了这个问题:


I followed the below steps to get rid of this issue:

1。清理整个项目并重新重建

1. Clean whole project and rebuild it again

2。重新启动Visual Studio

2. Restart the Visual studio

3。手动加载pdb文件

3. Manually loading pdb files

然而,对我来说没有任何作用。

However, nothing works for me.

当我看到模块窗口时,它显示了  mudules的DLL路径与我项目的二进制目录在不同的文件夹中。

When I saw the modules window, it is showing  DLL paths of mudules in very different folder than my project's binary directory.

模块窗口中显示的DLL路径是:  C:\windows \assembly \ GAC_MSIL \\ \\ QAliber.TestModel\1.0.0.0__aac3b2e748180b41\QAliber.TestModel.pdb

DLL path shown in modules window is: C:\windows\assembly\GAC_MSIL\QAliber.TestModel\1.0.0.0__aac3b2e748180b41\QAliber.TestModel.pdb

甚至C:\windows \assembly \ GAC_MSIL目录也不存在于全部。

And even C:\windows\assembly\GAC_MSIL directory isnot present at all.

这是什么意思?是不是意味着,项目的原始pdb文件被加载到该目录中?

What does it mean? does it mean, project's original pdb files are loaded in that directory?

如果是这样,这是怎么发生的?我的意思是,我刚从SVN存储库中检出了该项目并从VS 2008构建它。那么,为什么它显示这条路径而不是我项目的二进制文件夹?

If so, how did this happen? I mean, I just checked out the project from SVN repository and build it from VS 2008. So, why it is showing this path rather than my project's binary folder?

我试图手动加载符号文件。但它也给了我一个错误:   PDB与图片不匹配

I tried to load the symbol file manually. But it is also giving me an error :  PDB does not match image.

我是C#开发的新手,所以也许我错过了一些愚蠢的东西。

I am new to C# development so maybe I am missing something silly.

你能否告诉我这里缺少什么?

Could you please tell me what I am missing here?

提前谢谢你!

最好的问候,

Navnath




推荐答案

嗨朋友,

对你这个问题真的很抱歉。

Really sorry about this issue in your side.

然而,它可能是VS2008的限制,我找到了一个旧线程,很多人以前遇到过它:

However, it might be limitation of VS2008, I found an old thread where lots of people encountered it before:

https://social.msdn.microsoft.com/Forums/vstudio/en-US/5cf91a02-2309-4f89-924d-a536e09d7298/the-symbol-file-impdb-does-not-match-the-module? forum = vsdebug

我想知道你是否可以迁移到更新的Visual Studio?我知道这些项目是使用较旧的.Net Framework构建的,但我们仍然可以在VS 2015或VS2017中选择以前版本的.Net Framework 3.5,5.0等来构建它吗?

I wonder if you could migrate to a more update Visual Studio? I knew the projects were built with older .Net Framework, but we still can select the previous version of .Net Framework like 3.5, 4.0 etc. in VS 2015 or VS2017 to build it right?

 

问候,

弗莱彻


这篇关于断点当前不会被击中。没有为此文档加载符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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