473,811 Members | 2,485 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Debugger stepping into referenced DLL

Is it possible to step into the code of a referenced .net assembly from
within a project that is being debugged?

Thanks!!!
Nov 15 '05 #1
5 11009
If you have the debug symbols and source code for that assembly, then yes.

"craig" <e@mail.com> wrote in message
news:Oq******** ******@TK2MSFTN GP09.phx.gbl...
Is it possible to step into the code of a referenced .net assembly from
within a project that is being debugged?

Thanks!!!

Nov 15 '05 #2
(I'm assuming it's not an assembly in your solution.)

Yes, provided:
1) the asembly you referenced (and want to step into) was compiled as DEBUG
(debug symbols were created)
2) You have the .pdb (debug symbols) for the assembly you referenced in the
same directory as the .dll (normally your bin dir)
3) You have the source to step into.

"craig" <e@mail.com> wrote in message
news:Oq******** ******@TK2MSFTN GP09.phx.gbl...
Is it possible to step into the code of a referenced .net assembly from
within a project that is being debugged?

Thanks!!!

Nov 15 '05 #3
Yes on all three counts!

I have the source code in a different solution, and it was compiled in DEBUG
mode. It contains many of the base classes that I derive from in my
solution. But I would like to be able to set a breakpoint in the referenced
assembly and step into it from my solution. How can I do that?

Thanks!!!!

"Philip Rieck" <st***@mckraken .com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
(I'm assuming it's not an assembly in your solution.)

Yes, provided:
1) the asembly you referenced (and want to step into) was compiled as DEBUG (debug symbols were created)
2) You have the .pdb (debug symbols) for the assembly you referenced in the same directory as the .dll (normally your bin dir)
3) You have the source to step into.

"craig" <e@mail.com> wrote in message
news:Oq******** ******@TK2MSFTN GP09.phx.gbl...
Is it possible to step into the code of a referenced .net assembly from
within a project that is being debugged?

Thanks!!!


Nov 15 '05 #4
You need the debugger to load up the source first. Meaning, right when the
function you want to debug is called, do a 'step into'. This should load up
the class in the other solution, and once it's open, you can put breakpoints
anywhere in it.

"craig" <e@mail.com> wrote in message
news:u6******** ******@TK2MSFTN GP09.phx.gbl...
Yes on all three counts!

I have the source code in a different solution, and it was compiled in DEBUG mode. It contains many of the base classes that I derive from in my
solution. But I would like to be able to set a breakpoint in the referenced assembly and step into it from my solution. How can I do that?

Thanks!!!!

"Philip Rieck" <st***@mckraken .com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
(I'm assuming it's not an assembly in your solution.)

Yes, provided:
1) the asembly you referenced (and want to step into) was compiled as

DEBUG
(debug symbols were created)
2) You have the .pdb (debug symbols) for the assembly you referenced in

the
same directory as the .dll (normally your bin dir)
3) You have the source to step into.

"craig" <e@mail.com> wrote in message
news:Oq******** ******@TK2MSFTN GP09.phx.gbl...
Is it possible to step into the code of a referenced .net assembly from within a project that is being debugged?

Thanks!!!



Nov 15 '05 #5
Someone else also just pointed out to me that it is possible to drag the
file from the directory into the development environment and then set break
points in it. very cool.
"Marina" <so*****@nospam .com> wrote in message
news:OG******** ******@TK2MSFTN GP10.phx.gbl...
You need the debugger to load up the source first. Meaning, right when the
function you want to debug is called, do a 'step into'. This should load up the class in the other solution, and once it's open, you can put breakpoints anywhere in it.

"craig" <e@mail.com> wrote in message
news:u6******** ******@TK2MSFTN GP09.phx.gbl...
Yes on all three counts!

I have the source code in a different solution, and it was compiled in

DEBUG
mode. It contains many of the base classes that I derive from in my
solution. But I would like to be able to set a breakpoint in the

referenced
assembly and step into it from my solution. How can I do that?

Thanks!!!!

"Philip Rieck" <st***@mckraken .com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
(I'm assuming it's not an assembly in your solution.)

Yes, provided:
1) the asembly you referenced (and want to step into) was compiled as

DEBUG
(debug symbols were created)
2) You have the .pdb (debug symbols) for the assembly you referenced
in
the
same directory as the .dll (normally your bin dir)
3) You have the source to step into.

"craig" <e@mail.com> wrote in message
news:Oq******** ******@TK2MSFTN GP09.phx.gbl...
> Is it possible to step into the code of a referenced .net assembly

from > within a project that is being debugged?
>
> Thanks!!!
>
>



Nov 15 '05 #6

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

Similar topics

3
278
by: c# newbie | last post by:
When stepping through code, to find where an error is thrown, the problem is that I have to step threw the statement that causes the error, and if it's in a class that's instantiated from the main program, then I may miss the statement that causes the error. How can I get the debugger to stop right at the statement that causes the error.
8
3663
by: Rob S | last post by:
I have UDB 8.1 Personal Edition installed. I'm using Development centre to develop JAVA Stored Procedues. I am unable to debug them. I have installed IBM Distributed Debugger and have set DB2ROUTINE_DEBUG=ON. I installed Distributed Debugger after UDB. The Procs will build with debug but no debugger window appears when run in debug mode. I followed the instructions that came with Debugger regarding the installation directory etc.
1
1439
by: Drew Tennenbaum | last post by:
There is an old thread I found on google where the OP was exhibiting the same problems I am seeing. Reference "Debugger hell" posted 7-18-2002 by Sean Gies I am running Visual Studio 2003 RTM. Has this problem been fixed? I have a C# application that calls a managed C++ wrapper of a native C++ dll. Everything works fine. However, I notice on occasional breakpoints in my native code, everything freezes and it takes a while to bring up...
7
1660
by: Piet Van Vlierberghe | last post by:
We are a software firm developing in C++ and we recently made the step from Microsoft Visual Studio 6 to Microsoft Visual Studio .NET 2003. We are really excited about the quality of the compiler; however there seem to be some issues with the debugger or the combination of our code with the debugger that makes debugging very slow and inconvenient. Since our efficiency in software development seriously decreased, we are looking for possible...
2
1881
by: John Dalberg | last post by:
I need to know what happens after Page_load has finished so I put a breakpoint at the last statement. However after stepping into after this last statement, the app continues running without the debugger. Why can't I single step until the screen has fully rendered? -- John Dalberg
4
1136
by: Brett | last post by:
I walk through the following code and when I reach the last line, which is highlighted in yellow from the debugger, I step forward and nothing happens. The yellow highlighted block goes away and the while loop is no longer executed. The code is on a second thread. After stepping forward, focus returns to the application or main form. There are no errors or exceptions. While True Try If networkStream.CanWrite And...
18
2971
by: R. Bernstein | last post by:
Okay, a bit of an exaggeration. Recently, I've been using Python more seriously, and in using the debugger I think one of the first things I noticed was that there is no "restart" ("R" in perldb) or "run" (gdb) command. I was pleasantly pleased discover how easy though it was patch pdb.py and pdb.doc; my patch for this is here: http://sourceforge.net/tracker/index.php?func=detail&aid=1393667&group_id=5470&atid=305470
12
4472
by: mednyk | last post by:
T-SQL Debugger Doesn't Allow Stepping Through Stored Procedures And there is no other procedure with the same name owned by dbo or any other users. There is no error messages also, it just completes procedure and returns result server: Microsoft SQL Server 2000 - 8.00.818 (Intel X86) Microsoft Corporation Enterprise Edition on Windows NT 5.0 (Build 2195: Service Pack 4) and I don't know how do determine Client's version.
12
1609
by: colin | last post by:
Hi, Ive got a difference in results depending on wether I run my app in the debugger, or run it seperatly (or with <ctrl-f5>) the results in the debugger seem to be more correct, although the app isnt finished and theres still a lot of things it gets wrong. the processing is so complex its hard to determine where the difference can be occuring, its a visual display of 3d models, and theres a couple of surfaces
0
9728
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10648
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10402
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9205
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7670
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6890
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4339
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3867
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3018
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.