473,804 Members | 3,502 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Debugging referenced project

Bob
Hi,
What do I have to do to be able to debug an external project
referenced by another project? I have a project that references
several other projects. For some of the external projects, I can hit
"goto class definition" and I get the code in the referenced project
that I can breakpoint, etc. For others, I just get "from metadata"
which shows the various methods and their signatures but no code to
debug. I do not remember doing anything differently in the projects I
can/cannot debug externally.

Thanks,
Bob

Sep 12 '07 #1
3 1389
Bob <bs********@yah oo.comwrote:
What do I have to do to be able to debug an external project
referenced by another project? I have a project that references
several other projects. For some of the external projects, I can hit
"goto class definition" and I get the code in the referenced project
that I can breakpoint, etc. For others, I just get "from metadata"
which shows the various methods and their signatures but no code to
debug. I do not remember doing anything differently in the projects I
can/cannot debug externally.
You need to have the PDB files generated for the referenced assemblies,
and the source of course.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Sep 12 '07 #2
Bob
On Sep 12, 4:13 pm, Jon Skeet [C# MVP] <sk...@pobox.co mwrote:
Bob <bshumsk...@yah oo.comwrote:
What do I have to do to be able to debug an external project
referenced by another project? I have a project that references
several other projects. For some of the external projects, I can hit
"goto class definition" and I get the code in the referenced project
that I can breakpoint, etc. For others, I just get "from metadata"
which shows the various methods and their signatures but no code to
debug. I do not remember doing anything differently in the projects I
can/cannot debug externally.

You need to have the PDB files generated for the referenced assemblies,
and the source of course.

--
Jon Skeet - <sk...@pobox.co m>http://www.pobox.com/~skeet Blog:http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Thanks for your quick response. There is a pdb file in the referenced
folder with the same name (before extensions of exe and pdb) as my
reference.

Sep 12 '07 #3
Bob <bs********@yah oo.comwrote:
Thanks for your quick response. There is a pdb file in the referenced
folder with the same name (before extensions of exe and pdb) as my
reference.
It needs to be the latest version - i.e. the pdb has to be from the
same build as the dll.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Sep 13 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2865
by: Johann Blake | last post by:
I can hardly believe I'm the first one to report this, but having gone through the newsgroup, it appears that way. I would like to open a solution in the VS.NET IDE that consists of multiple DLLs and a test application (an .EXE). The .EXE is my startup application. All the DLLs are shared components. This means that they contain a key and are stored in the GAC. When I go to run the test application in the IDE, it will not execute...
1
1495
by: Jimi | last post by:
(Sorry for the repost, but I thought maybe I'd have better luck this time) I'm working on a utility to provide an overview of one's .NET projects and one of the things I want to display is detailed information about what each project references, whether it is assemblies in the GAC or non-GAC assemblies or other .NET projects. From the project file I can get the assembly names of all assemblies referenced by a project, including other...
2
1729
by: thomas | last post by:
I have an c# exe-application which referenced a managed c++ dll. The managed c++ dll is an wrapper for some unmanaged c++ classes in a separate dll. That works fine but I can't debug in the unmanged c++ dll. Is there anyone who know why I can't debug in the unmanged c++ dll? Or is ther any way to do this? --- snip ---
6
2208
by: Brian Bischof | last post by:
I'm having troubles getting the debugging process to work consistenly for external classes. I got it to work once and then I turned it off. But now I can't get re-enabled. Here is what I'm doing. If someone could tell me what I'm missing that would be great. 1. Create an external class and call it Test.dll. 2. Create a test Asp.net app called App.sln. 3. For App.sln I set a reference to Test.dll. 4. Compile App.sln and run it. The web...
0
1094
by: Ashish | last post by:
Iam having some trouble debugging in the new vs2005. I have a class library and a web project, and web project references that class library. I have a custom handler for a http request in the class library whenever i place a break point on the custom handler code, it gives me error that "source code is different than original version".. when i set the break point location to the option so that it hits it even when its different, the...
2
2005
by: Andy | last post by:
Hi all, I have a project which references a DLL on a network share. The dll on the network share is one built by our integration server and I have the source code for it. I'm trying to debug a problem that arises in the current project, and I'd like to be able to step into code from the assembly on the network share, but I can't figure out how to get the debugger to load the pdb for the assembly.
2
5337
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: 1>make_buildinfo.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function _make_buildinfo2 Ask on python-list@python.org . - Josiah
2
1367
by: Les Caudle | last post by:
I've got some old .NET 1.0 code written by another programmer where he has a project divided into several different namespaces. I'm attempting to get it working under .NET 2.0. I notice that I'm unable to single step debug from one namespace to another, or even catch a breakpoint in anything but the main namespace. Is there a simple way to accomplish this I'm overlooking, or must I modify all the code to bring it into the same...
0
885
by: Socorro | last post by:
I'm getting a strange recurring error when debugging a website project. It happens frequently and takes a long time (even hours sometimes) to recover and work around. Object '/f86f32b3_a8cf_4e9a_9c7d_8438ccb97ea8/+pd9c7c61+uykillwuuyrnlg_10.rem' has been disconnected or does not exist at the server. I have searched numerous sites for this error, and I see several references to remote objects, but I'm not sure they apply to me because I'm...
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9571
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10561
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10318
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.