Debugging main app with compiled DLL

G

Gareth

Hi,

I am debugging a new VB.net app using INI functions from a pre compiled .NET
dll.

When I come to a line calling a function in the DLL, the debugger knows
where the code of the dll is and shows it when I use F8 to proceed to the
next line of code.

I have copied the compiled DLL to the debug folder of the main app and used
the 'reference' screen to 'point' to that dll, but it still shows me the dll
code.

Can anyone tell me how to switch this off because I will be making many many
classes with DLLs and I really don't want the vb.net debugger to take me
constantly to already well debugged code of the compiled DLL.

Thanking you in advance

Garry
 
K

kimiraikkonen

Hi,

I am debugging a new VB.net app using INI functions from a pre compiled .NET
dll.

When I come to a line calling a function in the DLL, the debugger knows
where the code of the dll is and shows it when I use F8 to proceed to the
next line of code.

I have copied the compiled DLL to the debug folder of the main app and used
the 'reference' screen to 'point' to that dll, but it still shows me the dll
code.

Can anyone tell me how to switch this off because I will be making many many
classes with DLLs and I really don't want the vb.net debugger to take me
constantly to already well debugged code of the compiled DLL.

Thanking you in advance

Garry

If your DLL is compiled, just reference it, through your project in
solution explorer -> right click -> add reference -> browse.

Don't add the DLL to your project by file -> add -> new project ->
class library. When you reference just the compiled DLL under your
project you'll be able to use and call the libraries and no source
code of the DLL will be shown on your VS IDE.
 
P

Phill W.

Gareth said:
When I come to a line calling a function in the DLL, the debugger knows
where the code of the dll is and shows it when I use F8 to proceed to the
next line of code.
Can anyone tell me how to switch this off because I will be making many many
classes with DLLs and I really don't want the vb.net debugger to take me
constantly to already well debugged code of the compiled DLL.

Rebuild your Dll's in "Release" Mode and the Debugger will skip straight
past them.

HTH,
Phill W.
 

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