473,399 Members | 3,888 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,399 software developers and data experts.

Can't step into?

I have referenced two .NET DLLs in my project. When debugging, I step
into one of aDLL's methods. aDLL inherits from bDLL. In aDLL, there
is a method called from bDLL. However, I cannot step into it. For
example:
[Project.class1] ( start debugging here and step into mya.dosomething)
aDLL.someclass mya = new aDLL.someclass();
mya.dosomething()

[aDLL.someclass:bDLL.anotherclass] (I can get here with no problems. I
cannot step into getResults)
myObject mo = new myObject();
public void something()
{
mo = getResults()
}

[bDLL.anotherclass] (Can't get here in debugger)
public void getResults()
{
--do something here
}

Why can I get into aDLL but not bDLL?

Thanks,
Brett

Dec 29 '05 #1
5 2783
Brett Romero wrote:
I have referenced two .NET DLLs in my project. When debugging, I step
into one of aDLL's methods. aDLL inherits from bDLL. In aDLL, there
is a method called from bDLL. However, I cannot step into it. For
example:
[Project.class1] ( start debugging here and step into mya.dosomething)
aDLL.someclass mya = new aDLL.someclass();
mya.dosomething()

[aDLL.someclass:bDLL.anotherclass] (I can get here with no problems. I
cannot step into getResults)
myObject mo = new myObject();
public void something()
{
mo = getResults()
}

[bDLL.anotherclass] (Can't get here in debugger)
public void getResults()
{
--do something here
}

Why can I get into aDLL but not bDLL?

Thanks,
Brett


Hi Brett,

A few ideas:

Are you properly using inheritance?
-are bDLL's methods virtual?
-Are you overriding the method?
-Are you calling base.method where you want to execute the base classes
methods

It also may be possible that your symbols aren't looking at the right
assembly. Do you have a project reference correctly set, and is your
assembly in the GAC or someplace else?
--
Rob Schieber
Dec 29 '05 #2
>Are you properly using inheritance?
I'm not getting any errors and the base method is executing (that I
know of). What else could say I'm not using inheritance correctly?
-are bDLL's methods virtual? Not the one I'm calling. It is public.
-Are you overriding the method? No. I'm calling it from the base. In the base, it is simply a public
string method.
-Are you calling base.method where you want to execute the base classes

methods
I have done "this.", "base." and just the method name. Same results in
each case.

Thanks,
Brett

Dec 29 '05 #3
Brett Romero wrote:
Are you properly using inheritance?


I'm not getting any errors and the base method is executing (that I
know of). What else could say I'm not using inheritance correctly?

-are bDLL's methods virtual?


Not the one I'm calling. It is public.

-Are you overriding the method?


No. I'm calling it from the base. In the base, it is simply a public
string method.

-Are you calling base.method where you want to execute the base classes


methods
I have done "this.", "base." and just the method name. Same results in
each case.

Thanks,
Brett


If you are positive that the base method is executing correctly, then it
is probably a reference issue. Make sure that you have your project
references set up correctly. You may want to remove and re-add your
references just to be sure. Also, make sure everything is compiled in
debug mode.
--
Rob Scheiber
Dec 29 '05 #4
BTW, these aren't in the GAC. They are in their respective project bin
folders and then copied to the referencing project's bin.

I tried your suggestion of rebuilding the referenced DLL then
removing/adding it back to my project. That worked! Great suggestion.
The DLL was also doing incremental versioning, which I turned off.
The versions are now hard coded. I don't need versioning issues at
this point.

Thanks,
Brett

Dec 29 '05 #5
If you have the projects to both .dll's it is better in the referencing
project to *not* reference the .dll's directly. It is better to add
the projects to your solution and use project referencing instead.
That should alleviate the versioning and debugging issues you are
having.

Dec 30 '05 #6

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

Similar topics

6
by: Andrew V. Romero | last post by:
First off, I am mostly familier with PHP but am trying to make a multi-step javascript program. For an example, I would like to run different sections of the script depending on how many times the...
0
by: Dean | last post by:
Hi I am trying to debug a solution made up of a number of projects. When I step into most of the functions of any of the objects my debugger works fine. The only object that won't let me step...
2
by: Vikram Sinha | last post by:
Hi, I am unable to step into a method call on a webservice(WS) from a webform(WF) when WS and WF are located in separate VS.NET solutions. When I try to step in, step over occurs. BTW, I am...
3
by: R Millman | last post by:
under ASP.NET, single stepping in debug mode appears not to stop within event procedures. i.e. 1) Create web page with submit button and event procedure for the click event in the code behind...
54
by: MLH | last post by:
I use A97 and do not always insert line numbers while writing procedures. I find it necessary to go back and add them later to aid in debugging. Nearly 3 years ago, something was mentioned in...
4
by: MichaelCombs | last post by:
I'm looking for a way to step into code at the next line of execution in the debugger. Back in the day you could do this in VB by doing something like Ctrl-Break to pause te debugger and then hit...
37
by: jht5945 | last post by:
For example I wrote a function: function Func() { // do something } we can call it like: var obj = new Func(); // call it as a constructor or var result = Func(); // call it as...
3
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
Does anyone know why I have no "Step Into" option during debugging in VS 2005/C# app? I have "Step Over" but no "Step Into" even though it would be stepping into one of my own functions inside the...
1
by: Andy B | last post by:
I have a wizard that has 3 wizardSteps. The first one is selecting a NewsArticle from the combobox to edit. The second wizardStep (pressing next) loads the whole database record into a form. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.