473,467 Members | 1,477 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

debugging between namespaces?

I've got some old .NET 1.0 code written by another programmer where he has a
project divided into several different namespaces. I'm attempting to get it
working under .NET 2.0.

I notice that I'm unable to single step debug from one namespace to another, or
even catch a breakpoint in anything but the main namespace.

Is there a simple way to accomplish this I'm overlooking, or must I modify all
the code to bring it into the same namespace?
--
Thanks in advance, Les Caudle
Apr 13 '07 #1
2 1353
Les Caudle,

Are you sure that it's not another assembly, and the namespace divide
happens to coincide with how the assemblies are laid out?

Do you have the code project? Is your reference to the project, or to
the assembly? If it is to the assembly, and not the project, you aren't
going to be able to step into the code in that assembly that is referenced.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Les Caudle" <ve**@tiredofspam.comwrote in message
news:vu********************************@4ax.com...
I've got some old .NET 1.0 code written by another programmer where he has
a
project divided into several different namespaces. I'm attempting to get
it
working under .NET 2.0.

I notice that I'm unable to single step debug from one namespace to
another, or
even catch a breakpoint in anything but the main namespace.

Is there a simple way to accomplish this I'm overlooking, or must I modify
all
the code to bring it into the same namespace?
--
Thanks in advance, Les Caudle

Apr 14 '07 #2
Nicholas - I have all the code, and moved the code into the same project (it was
in separate projects). Only a single dll is produced, so nothing needs to be
referenced.

It compiles, but I can't debug between namespaces.

Regards, Les Caudle

On Fri, 13 Apr 2007 20:28:17 -0400, "Nicholas Paldino [.NET/C# MVP]"
<mv*@spam.guard.caspershouse.comwrote:
>Les Caudle,

Are you sure that it's not another assembly, and the namespace divide
happens to coincide with how the assemblies are laid out?

Do you have the code project? Is your reference to the project, or to
the assembly? If it is to the assembly, and not the project, you aren't
going to be able to step into the code in that assembly that is referenced.

Hope this helps.
--
Thanks in advance, Les Caudle
Apr 14 '07 #3

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

Similar topics

18
by: Steven Bethard | last post by:
In the "empty classes as c structs?" thread, we've been talking in some detail about my proposed "generic objects" PEP. Based on a number of suggestions, I'm thinking more and more that instead of...
24
by: Marcin Vorbrodt | last post by:
Here is an example of my code: //Header file #include <vector> using std::vector; namespace Revelation { // class definitions, etc... // class members are of type std::vector }
17
by: clintonG | last post by:
Using 2.0 with Master Pages and a GlobalBaseClass for the content pages. I understand the easy part -- the hierarchical structure of a namespace naming convention -- but the 2.0 IDE does not...
11
by: Random | last post by:
I'm confused about the proper use and usefulness of namespaces. I beleive I understand the purpose is so the developer can put classes within namespaces to essentially organize your code. And I...
0
by: bvh | last post by:
When I try to run an asp.net project I get a message stating: Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged. ...
1
by: Ethan Strauss | last post by:
Hi, I have a C#.net Web application which calls a web service (http://eutils.ncbi.nlm.nih.gov/entrez/eutils/soap/eutils.wsdl). It has run just fine for months. Recently I started getting...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
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...
0
tracyyun
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...
0
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,...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.