PC Review


Reply
Thread Tools Rate Thread

Debugging a VB.Net DLL

 
 
Jim Bancroft
Guest
Posts: n/a
 
      3rd Aug 2004
Hi everyone,

I have a DLL and a console app I'm using together, both created in VB
..Net. I've added both projects to a Visual Studio solution, and have a
breakpoint set on my console app, where it calls a public method on one of
the dll's objects.

When I reach my console app's breakpoint and hit F11 to "step into" the
dll method, I just skip to the next line of the console app. That is,
unless I have a breakpoint set on the dll's method.

Is that behavior by design, or can I arrange things so that I don't need to
set breakpoints in ancillary projects when debugging my main app? Thanks
for helping me clear this up.

-Jim




 
Reply With Quote
 
 
 
 
Steve Long
Guest
Posts: n/a
 
      3rd Aug 2004
Did you set a reference to the project or the file dll? If you set it to the
file reference, this is the behavior you can expect.

Steve

"Jim Bancroft" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi everyone,
>
> I have a DLL and a console app I'm using together, both created in VB
> .Net. I've added both projects to a Visual Studio solution, and have a
> breakpoint set on my console app, where it calls a public method on one of
> the dll's objects.
>
> When I reach my console app's breakpoint and hit F11 to "step into" the
> dll method, I just skip to the next line of the console app. That is,
> unless I have a breakpoint set on the dll's method.
>
> Is that behavior by design, or can I arrange things so that I don't need

to
> set breakpoints in ancillary projects when debugging my main app? Thanks
> for helping me clear this up.
>
> -Jim
>
>
>
>



 
Reply With Quote
 
Jim Bancroft
Guest
Posts: n/a
 
      3rd Aug 2004
Hi Steve,

Well, you're right in that I did set a reference to the file dll originally.
But I'm not quite sure how to set a reference to the project, instead of the
file-- when adding references this time I clicked the "Project" tab (I
removed my file reference first), and sure enough my dll project was right
there. I selected it, am now using it, but the problem remains.

I must be doing something wrong-- maybe I didn't pick the "project"
reference correctly? In case you hadn't guessed, I'm somewhat new to
multi-project debugging in .Net.

-Jim


"Steve Long" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Did you set a reference to the project or the file dll? If you set it to

the
> file reference, this is the behavior you can expect.
>
> Steve
>
> "Jim Bancroft" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi everyone,
> >
> > I have a DLL and a console app I'm using together, both created in

VB
> > .Net. I've added both projects to a Visual Studio solution, and have a
> > breakpoint set on my console app, where it calls a public method on one

of
> > the dll's objects.
> >
> > When I reach my console app's breakpoint and hit F11 to "step into"

the
> > dll method, I just skip to the next line of the console app. That is,
> > unless I have a breakpoint set on the dll's method.
> >
> > Is that behavior by design, or can I arrange things so that I don't need

> to
> > set breakpoints in ancillary projects when debugging my main app?

Thanks
> > for helping me clear this up.
> >
> > -Jim
> >
> >
> >
> >

>
>



 
Reply With Quote
 
Steve Long
Guest
Posts: n/a
 
      3rd Aug 2004

Well, I'm not sure which layout you are using in your IDE, I have the VB
developer selected so when I hit F8, it steps into. However, you probably
left it as default so F11 is probably step into.

Nowever, if you remove the reference to the file dll and then add the
reference to the project dll, that should work. Sometimes you have to close
down the IDE and reopen it for things to work right. I don't know why that
is. NTL, if you put a break point in your dll project, you should be able to
step into it just fine.

Steve

"Jim Bancroft" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Steve,
>
> Well, you're right in that I did set a reference to the file dll

originally.
> But I'm not quite sure how to set a reference to the project, instead of

the
> file-- when adding references this time I clicked the "Project" tab (I
> removed my file reference first), and sure enough my dll project was right
> there. I selected it, am now using it, but the problem remains.
>
> I must be doing something wrong-- maybe I didn't pick the "project"
> reference correctly? In case you hadn't guessed, I'm somewhat new to
> multi-project debugging in .Net.
>
> -Jim
>
>
> "Steve Long" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Did you set a reference to the project or the file dll? If you set it to

> the
> > file reference, this is the behavior you can expect.
> >
> > Steve
> >
> > "Jim Bancroft" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Hi everyone,
> > >
> > > I have a DLL and a console app I'm using together, both created in

> VB
> > > .Net. I've added both projects to a Visual Studio solution, and have

a
> > > breakpoint set on my console app, where it calls a public method on

one
> of
> > > the dll's objects.
> > >
> > > When I reach my console app's breakpoint and hit F11 to "step into"

> the
> > > dll method, I just skip to the next line of the console app. That

is,
> > > unless I have a breakpoint set on the dll's method.
> > >
> > > Is that behavior by design, or can I arrange things so that I don't

need
> > to
> > > set breakpoints in ancillary projects when debugging my main app?

> Thanks
> > > for helping me clear this up.
> > >
> > > -Jim
> > >
> > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I skip debugging Ajax when debugging my code? AAaron123 Microsoft ASP .NET 3 28th Jul 2009 05:07 PM
Debugging Help David Microsoft Excel Programming 1 5th Oct 2007 12:02 PM
Help Debugging =?Utf-8?B?S2liYQ==?= Microsoft Excel Programming 12 21st May 2007 07:27 PM
Start Without Debugging(CTRL F5) 3x slower than Start With Debugging(F5)! lostnewmexico@yahoo.com Microsoft VC .NET 9 22nd Feb 2006 06:14 PM
No Debugging of C# Server-Side Script, but Code-Behind Debugging Works Johann Blake Microsoft ASP .NET 1 5th Jan 2004 03:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 PM.