Debugging referenced project


B

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
 
Ad

Advertisements

J

Jon Skeet [C# MVP]

Bob said:
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.
 
B

Bob

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

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.
 
Ad

Advertisements

J

Jon Skeet [C# MVP]

Bob said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top