How to open a reference file when I debug a project

  • Thread starter Thread starter ahawk
  • Start date Start date
A

ahawk

Hi, All,
I'm a beginner of Vb.net. My solution(A) has reference
another object (solution B), so when I debug( trace) my
program step by step, the system opens the class code of
solution B. My question is how can I add breakpoint
somewhere of one clsss of solution B (open it in Solution
A environment) and when I trace the Solution A, the
system will stop at break-point. I don't want to trace
the code one step by step to open a class in Solution B
every time, just want to open it in Solution A and add
breakpoint. is it possible? if it's possible, please tell
me how.

Thanks and have a good weekend

ahawk
 
Ahawk,

It is not so clear in my opinion what your tell.
Do you mean that you have two projects running which you want to debug in
the same time?

Cor
 
ahawk said:
Hi, All,
I'm a beginner of Vb.net. My solution(A) has reference
another object (solution B), so when I debug( trace) my
program step by step, the system opens the class code of
solution B. My question is how can I add breakpoint
somewhere of one clsss of solution B (open it in Solution
A environment) and when I trace the Solution A, the
system will stop at break-point. I don't want to trace
the code one step by step to open a class in Solution B
every time, just want to open it in Solution A and add
breakpoint. is it possible? if it's possible, please tell
me how.

Well, you'r really confused :)

I think that what you want is:

- Compile B in Debug mode (a .pdb will be created).
- From A reference the debug version of B.
- Running A you will be able to step thru B's code.
 
Clearly, you have two solutions, when you probably only need one solution
with two projects.

A solution is just a collection of projects. It doesn't actually do
anything when it comes to the compiler. Visual Studio cares (but Visual
Studio is an IDE, not a compiler). The C# compiler only cares about
projects, and will produce a single assembly for each project.

Therefore, you can have project A in solution A, as well as in solution B
and solution C.

So, to meet your needs, since you are debugging project B in the context of
project A, perhaps you should have a single solution with both projects in
it.

Solution A contains
Project A
Project B

Solution B contains
Project B


--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 

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

Back
Top