简体   繁体   English

VS2015如何在其他项目中获得断点

[英]VS2015 how to get a breakpoint in an additional project

I am using visual studio 2015 to develop Program A. 我正在使用Visual Studio 2015开发程序A。

It makes use of a new general hardware Library B which is also in development, but in a different project. 它利用了一个新的通用硬件库B,该库也正在开发中,但是在另一个项目中。

.

In visual studio while i have opened A, I've added existing project B. So project A, has B as a .dll reference and can make use of compiled B code. 在Visual Studio中,当我打开A时,我添加了现有项目B。因此,项目A具有B作为.dll引用,并且可以利用编译后的B代码。 B provides its own typical class, with its own defined namespace etc. B提供了自己的典型类,以及自己定义的名称空间等。

Sometimes I need to fix or test new things in library B. So that A can use a new or updated function written in B. To use use a new function I do a batch compile of A and B. If the new function compiles OK and works, then so far so good no problems. 有时我需要修复或测试库B中的新内容。以便A可以使用用B编写的新功能或更新的功能。要使用新功能,我需要对A和B进行批量编译。如果新功能可以编译,并且的作品,那么到目前为止到目前为止没有问题。

But Sometimes things are not OK and don't work as supposed, and I need to check what happens inside B when running aplication A. However if I set a breakpoint in the B project, nothing happens ???. 但是有时情况不正常,不能按预期工作,并且在运行A应用程序时我需要检查B内部发生了什么。但是,如果我在B项目中设置了一个断点,则什么也没有发生。

How can I set a breakpoint in B, wile I am testing A. 我正在测试A时,如何在B中设置断点。

PS, I have "just my code" disabled. PS,我禁用了“我的代码”。

This sounds like no symbols loaded for the module in project B. To ensure symbols are loaded, be sure you have the correct pdb for the module and add the path to that pdb to your symbols path under Debug->Settings->Symbol settings. 听起来好像没有为项目B中的模块加载任何符号。要确保已加载符号,请确保您具有正确的模块pdb,并将该pdb的路径添加到Debug-> Settings-> Symbol设置下的符号路径中。 Also, under the same menu you can either select "load all symbols" or"load only select" and add the name of the module to the list of modules. 另外,在同一菜单下,您可以选择“加载所有符号”或“仅加载选择”,并将模块名称添加到模块列表中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM