I've created several DLL's that I use in other projects. I "Add Reference"
to these other projects pointing to my DLL. Probelm is, I can't seem to be
able to step into my DLL code (from these other projects) -- I've tried
adding the source code project (that was used to build the DLL) into my
current solution, but I still can't seem to step into the code of my DLL.
Any suggestion?
I must be missing something simple?
Thanks, Rob. 4 10600
In article <u1************ **@TK2MSFTNGP10 .phx.gbl>, ro*****@pacbell .net
says... I've created several DLL's that I use in other projects. I "Add Reference" to these other projects pointing to my DLL. Probelm is, I can't seem to be able to step into my DLL code (from these other projects) -- I've tried adding the source code project (that was used to build the DLL) into my current solution, but I still can't seem to step into the code of my DLL.
Any suggestion?
Are the other DLL's compiled in debug mode?
Does the PDB file that gets generated during a debug compile exist in
the same directory as the DLL?
--
Patrick Steele
Microsoft .NET MVP http://weblogs.asp.net/psteele
Patrick,
Yes and Yes.
I assume that I am supposed to add the DLL source code project/assembly to
my primary solution? Is there anything else I need to do?
In my case:
I have a Windows Service, that references a couple of other DLL's I created.
I have no problem debugging my Windows Service solution (i.e. using Debug
Process, select the running service, attach, etc.), but no matter what I do,
I can't seem to step into the DLL code that is called from my Windows
Service.
Do I need to resort to other methods as it seems debugging DLL's in a
Windows Service is just not supported?
I'll code a Windows Form app to test the DLL and see if this is just an
issue with DLLs in Windows Services -- it shouldn't be, but...
Rob.
"Patrick Steele [MVP]" <pa*****@mvps.o rg> wrote in message
news:MP******** *************** *@msnews.micros oft.com... In article <u1************ **@TK2MSFTNGP10 .phx.gbl>, ro*****@pacbell .net says... I've created several DLL's that I use in other projects. I "Add Reference" to these other projects pointing to my DLL. Probelm is, I can't seem to be able to step into my DLL code (from these other projects) -- I've tried adding the source code project (that was used to build the DLL) into my current solution, but I still can't seem to step into the code of my DLL.
Any suggestion?
Are the other DLL's compiled in debug mode?
Does the PDB file that gets generated during a debug compile exist in the same directory as the DLL?
-- Patrick Steele Microsoft .NET MVP http://weblogs.asp.net/psteele
Update:
I ran a test project (standard Windows Form) loading the my DLL (Add
Reference) and loaded the DLL source code project -- this worked, I could
step into the DLL code.
So, it appears that stepping into DLL code via a Windows Service project
using the Debug Processes is just not supported. Unless someone has some
insights that I'm missing?
Rob.
"Rob R. Ainscough" <ro*****@pacbel l.net> wrote in message
news:uv******** ******@TK2MSFTN GP09.phx.gbl... Patrick,
Yes and Yes.
I assume that I am supposed to add the DLL source code project/assembly to my primary solution? Is there anything else I need to do?
In my case:
I have a Windows Service, that references a couple of other DLL's I created. I have no problem debugging my Windows Service solution (i.e. using Debug Process, select the running service, attach, etc.), but no matter what I do, I can't seem to step into the DLL code that is called from my Windows Service.
Do I need to resort to other methods as it seems debugging DLL's in a Windows Service is just not supported?
I'll code a Windows Form app to test the DLL and see if this is just an issue with DLLs in Windows Services -- it shouldn't be, but...
Rob.
"Patrick Steele [MVP]" <pa*****@mvps.o rg> wrote in message news:MP******** *************** *@msnews.micros oft.com... In article <u1************ **@TK2MSFTNGP10 .phx.gbl>, ro*****@pacbell .net says... I've created several DLL's that I use in other projects. I "Add Reference" to these other projects pointing to my DLL. Probelm is, I can't seem to be able to step into my DLL code (from these other projects) -- I've tried adding the source code project (that was used to build the DLL) into my current solution, but I still can't seem to step into the code of my DLL.
Any suggestion?
Are the other DLL's compiled in debug mode?
Does the PDB file that gets generated during a debug compile exist in the same directory as the DLL?
-- Patrick Steele Microsoft .NET MVP http://weblogs.asp.net/psteele
In article <uv************ **@TK2MSFTNGP09 .phx.gbl>, ro*****@pacbell .net
says... I have a Windows Service, that references a couple of other DLL's I created. I have no problem debugging my Windows Service solution (i.e. using Debug Process, select the running service, attach, etc.), but no matter what I do, I can't seem to step into the DLL code that is called from my Windows Service.
Where is this DLL located? In the GAC?
--
Patrick Steele
Microsoft .NET MVP http://weblogs.asp.net/psteele This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Davy |
last post by:
Hi all,
I use VC and gcc/gdb to compile and debug C/C++ files. But I found some
of the debug version of the compiled files are too large to be run in a
small RAM. Can I compile C/C++ Debug partially?
Something like:
fileA.c fileB.c
And I can compile fileA.c with debug info and compile fileB.c without
debug info?
|
by: emma middlebrook |
last post by:
I have a question regarding asserting ... here's some code:
string GetAssertMessage()
{
... prepare a message string and return it...
}
void SomeMethod()
{
...
|
by: Srinivasa Rao |
last post by:
I have read in one article that when we compile the application in release
mode, all the debug classes and properties will be automatically removed from
the code. I tried to implement this thing by using the following code in
Page_Load event handler.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim intcount As Integer
intcount = 0
For intcount = 0 To 4
|
by: dee |
last post by:
Hi
I'm about to upload my site and I have switched to release version. Is that
enough or do I still need to disable
<compilation defaultLanguage="vb" debug="true" />
the debug="true" in the .pdb file?
Is the .pdb necessary for the release version?
Thanks a bunch.
Dara
|
by: swartzbill2000 |
last post by:
Hello,
I have a VB 2005 Express project with a TraceListener-derived class to
route Debug.Print output to a log file. It works fine for Debug builds.
What is the correct combination of changes to make it work in Release
build?
Bill
| |
by: pauldepstein |
last post by:
To help me debug, I am writing a lot of information into a stream which
I call debug.
However, because of the large amount of time taken to print this
information, I only want this printed while I am in debugging mode as
indicated by a preprocessor directive:
#define DEBUG
In other words, I need code which says "Whenever I write debug <<
|
by: Andrew Rowley |
last post by:
I am having trouble getting debug and release builds to work properly
with project references using C++ .NET and Visual Studio 2003.
I created a test solution, with a basic Windows form C++ project.
I then add a class library, and add a reference to this project in the
first project.
When I do a release build, I see the following in the output from the
DLL compile:
/OUT:"C:\Documents and Settings\Andrew\My Documents\Visual Studio
|
by: BA |
last post by:
I posted on this once before and could not get a solution, I am hoping
someone can help. I have a very strange code debug behavior that I cannot
make heads or tails of:
I have c# code being executed in BizTalk assemblies which is repeating debug
statements. I tried debug.flush() and debug.close() which did not solve the
problem.
In my BizTalk process I call a static method:
|
by: gfergo |
last post by:
Good Morning,
I seem to be having a problem. I thought I could display detailed
debugging information (including file name and line number) on a page
using two different methods:
1.) modify the debug attribute of the compilation element in the
web.config file -
|
by: rorni |
last post by:
Hi,
I'm porting code from Windows to HP-UX 11, compiling with g++.
I'm getting a compilation error on the system's debug.h include file, which is included very indirectly through a series of other system include files. The one I am including is <map> .
The errors I am getting are:
/opt/hp-gcc-4.2.1/lib/gcc/ia64-hp-hpux11.23/4.2.1/../../../../include/c++/4.2.1/debug/debug.h: At global scope:...
|
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...
| |
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...
|
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
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...
| |