473,320 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Dubugger goes to code of .net DLL

Hi,

I have a new VB.NET project and a VB.NET dll.

The DLL is compiled directly to the bin\debug folder of the VB.NET project

The project reference path for the DLL is to the compiled DLL in the
bin\debug folder. (not the bin\debug folder of the DLL code project)

BUT, when I get to code referencing the DLL functions in the main VB.NET
project, the debugger goes to the code of the DLL. (How it knows where the
code is - I have no idea).

This is not what I want as the DLL functions are well debugged.

I have looked for some parameter to control this 'affliction' and have found
no solution.

Anyone any ideas????

Thanking them in advance.

Garry
Apr 8 '08 #1
9 1141
Hello Gareth,
BUT, when I get to code referencing the DLL functions in the main
VB.NET project, the debugger goes to the code of the DLL. (How it
knows where the code is - I have no idea).

This is not what I want as the DLL functions are well debugged.
F10 can be used to step over (execute without steping into the code)
F11 only for stepping in.
Shift F11 can be used to complete a procedure if you accidentally step into
it.

Hope this helps

--
Rory
Apr 8 '08 #2
Yes.

Thank you Rory.

I 'came from' VB6 and thought that I 'knew it all'.

Thanks again.

Garry
"Rory Becker" <ro********@newsgroup.nospamwrote in message
news:20*************************@news.microsoft.co m...
Hello Gareth,
>BUT, when I get to code referencing the DLL functions in the main
VB.NET project, the debugger goes to the code of the DLL. (How it
knows where the code is - I have no idea).

This is not what I want as the DLL functions are well debugged.

F10 can be used to step over (execute without steping into the code)
F11 only for stepping in.
Shift F11 can be used to complete a procedure if you accidentally step
into it.

Hope this helps

--
Rory


Apr 8 '08 #3
"Gareth" <ba******@gmail.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Hi,

I have a new VB.NET project and a VB.NET dll.

The DLL is compiled directly to the bin\debug folder of the VB.NET project

The project reference path for the DLL is to the compiled DLL in the
bin\debug folder. (not the bin\debug folder of the DLL code project)

BUT, when I get to code referencing the DLL functions in the main VB.NET
project, the debugger goes to the code of the DLL. (How it knows where the
code is - I have no idea).

This is not what I want as the DLL functions are well debugged.

I have looked for some parameter to control this 'affliction' and have
found
no solution.

Anyone any ideas????

Build a release version of the dll and reference that.

--
Anthony Jones - MVP ASP/ASP.NET
Apr 8 '08 #4
Great idea Anthony Jones.

I'll try that too since I amused to F8. My hand seems to take me to F8
automatically.

Garry
"Anthony Jones" <An*@yadayadayada.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
"Gareth" <ba******@gmail.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>Hi,

I have a new VB.NET project and a VB.NET dll.

The DLL is compiled directly to the bin\debug folder of the VB.NET
project

The project reference path for the DLL is to the compiled DLL in the
bin\debug folder. (not the bin\debug folder of the DLL code project)

BUT, when I get to code referencing the DLL functions in the main VB.NET
project, the debugger goes to the code of the DLL. (How it knows where
the
code is - I have no idea).

This is not what I want as the DLL functions are well debugged.

I have looked for some parameter to control this 'affliction' and have
found
>no solution.

Anyone any ideas????


Build a release version of the dll and reference that.

--
Anthony Jones - MVP ASP/ASP.NET


Apr 8 '08 #5
Anthony Hi,

I looked in the various parameters available for the DLL and cannot see one
for 'a release version of the dll'

Before I used menu Build/Build <DLLName>

Any more help????

Garry

"Anthony Jones" <An*@yadayadayada.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
"Gareth" <ba******@gmail.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>Hi,

I have a new VB.NET project and a VB.NET dll.

The DLL is compiled directly to the bin\debug folder of the VB.NET
project

The project reference path for the DLL is to the compiled DLL in the
bin\debug folder. (not the bin\debug folder of the DLL code project)

BUT, when I get to code referencing the DLL functions in the main VB.NET
project, the debugger goes to the code of the DLL. (How it knows where
the
code is - I have no idea).

This is not what I want as the DLL functions are well debugged.

I have looked for some parameter to control this 'affliction' and have
found
>no solution.

Anyone any ideas????


Build a release version of the dll and reference that.

--
Anthony Jones - MVP ASP/ASP.NET


Apr 8 '08 #6
"Gareth" <ba******@gmail.comwrote in message
news:uX****************@TK2MSFTNGP05.phx.gbl...
Anthony Hi,

I looked in the various parameters available for the DLL and cannot see
one
for 'a release version of the dll'

Before I used menu Build/Build <DLLName>

Any more help????
Do you have your project and your dll project in the same solution?

The standard tool bar will have a drop down containing existing
configurations typiclaly Debug and Release. Change it to release and build
your DLL project. Remove the project from your solution and change the
reference to is in the project you are debugging to the dlls bin\release
folder.

Personally I wouldn't bother and simply use Step Into, Step Over and Step
Out as appropriate its not like you'll not be doing that for code within a
project anyway.
--
Anthony Jones - MVP ASP/ASP.NET
Apr 8 '08 #7
Hello Gareth,
Yes.

Thank you Rory.

I 'came from' VB6 and thought that I 'knew it all'.
Nothing wrong with Vb6. Just please don't ever make me go back there :)

Worth noting that the keys I mentioned might change dependant on the keboard
scheme you have in place, but the commands ( step in /out/over) should be
on the Debug menu

--
Rory
Apr 8 '08 #8
Thanks Rory.

The scheme fits fine.

garry
"Rory Becker" <ro********@newsgroup.nospamwrote in message
news:20*************************@news.microsoft.co m...
Hello Gareth,
>Yes.

Thank you Rory.

I 'came from' VB6 and thought that I 'knew it all'.

Nothing wrong with Vb6. Just please don't ever make me go back there :)

Worth noting that the keys I mentioned might change dependant on the
keboard scheme you have in place, but the commands ( step in /out/over)
should be on the Debug menu
--
Rory


Apr 8 '08 #9
Antony Hi,

"The standard tool bar will have a drop down containing existing
configurations typiclaly Debug and Release. "

As far as I know, I have the 'standard' toolbar visible and there is no
dropdown/combo control on it. I did try displaying different tool bars
including the 'debug' and 'build' toolbars but nothing helped me there.

Anyway, F10, F11 and Shift/F11 being extremly useful.

Incidentally, I 'asked' the vs.2008 help for "keyboard shortcuts in VB.net"
and recieved a literal sunami of usless and unconnected articles.

When will Microsoft learn from Google.

Thank you for your time.


"Anthony Jones" <An*@yadayadayada.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
"Gareth" <ba******@gmail.comwrote in message
news:uX****************@TK2MSFTNGP05.phx.gbl...
>Anthony Hi,

I looked in the various parameters available for the DLL and cannot see
one
>for 'a release version of the dll'

Before I used menu Build/Build <DLLName>

Any more help????

Do you have your project and your dll project in the same solution?

The standard tool bar will have a drop down containing existing
configurations typiclaly Debug and Release. Change it to release and
build
your DLL project. Remove the project from your solution and change the
reference to is in the project you are debugging to the dlls bin\release
folder.

Personally I wouldn't bother and simply use Step Into, Step Over and Step
Out as appropriate its not like you'll not be doing that for code within a
project anyway.
--
Anthony Jones - MVP ASP/ASP.NET


Apr 8 '08 #10

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

Similar topics

8
by: DJ Craig | last post by:
I use a web hosting service that gives me FTP access to my directory on a Linux server. I use Mac OS X. I write my code in Dreamweaver MX which gives me color-coding, but I get really tired of...
2
by: Cameron McCormack | last post by:
Hi everyone. I have a page in which I've got some code snippets inside a pre within a div, but the text on some lines (if the window is narrow enough) goes over the edge of the div. Is there a...
2
by: Martin Baker | last post by:
I have an activeX control which I am calling from a C# program, this works fine. I now want to call the activeX control from a seperate thread, this works but is very slow. This is far too slow...
2
by: Benny Raymond | last post by:
Hi, I'm working on an app that has to inherit Form and override WndProc for several different reasons. Anyway it performs some actions on the window when WM_CREATE is called. The big problem...
1
by: Brian Anderson | last post by:
Hello, I have a native, C++ console app that uses ~26MB of RAM when it runs. It uses quite a lot of RAM to make some math but will never xceed 26MB. Now I've made a dll out of this code and...
6
by: moti | last post by:
Whenever I use PrintDocument.Print() to print a page it goes to PrintDocument_PrintPage and stays there forever unless I set e.HasMorePages to False. When I set it to False it prints the page but...
4
by: Simon Harvey | last post by:
Hi everyone, I have a windows form application that looks a little bit like outlook in that it has a menu system on the left and then the main area to the right has a horizontal splitter thing...
9
by: jewel87 | last post by:
Hi, I have a program with several classes which i was debugging and just found out strange thing: it creates the object in a constructor(class Employee), allocates all memory for other class...
1
by: mrityunjay11 | last post by:
the code is as #!/bin/sh i=1; while do echo "welcome $i times"; i= 'expr $i + 1 '; done
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.