473,396 Members | 1,915 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,396 software developers and data experts.

Trouble stepping into an overridden method

Hi,

I have a base class that defines a MustOverride method. In a derived
implementation class I
am not able to set a break point nor stepping into by a call from the
base class.

What would be wrong ?

Are there propably wrong project settings ?

The function gets called, because I see the results in the
application.

(Visual Studio 2005)

Thanks, Lothar

Imports System.IO

Public MustInherit Class Application_Base

Protected MustOverride Sub _GetApplication(ByVal sender As
Object, ByVal e As System.EventArgs)
Sub GetApplication(ByVal sender As Object, ByVal e As
System.EventArgs)
_GetApplication(sender, e)
End Sub
End Class

Public Class Application
Inherits Application_Base
Protected Overrides Sub _GetApplication(ByVal sender As Object,
ByVal e As System.EventArgs)

' Do the work

End Sub

End Class

Jun 13 '07 #1
1 965
lo************@lollisoft.de wrote:
I have a base class that defines a MustOverride method. In a derived
implementation class I am not able to set a break point nor step
into by a call from the base class.
So long as you have "Debug" as the Active Configuration, you should be
able to set breakpoints in the override.
Public MustInherit Class Application_Base

Protected MustOverride Sub _GetApplication( _
, ByVal sender As Object, ByVal e As System.EventArgs)
Sub GetApplication(ByVal sender As Object, _
, ByVal e As System.EventArgs)
_GetApplication(sender, e)
End Sub
Public Class Application
Inherits Application_Base
Protected Overrides Sub _GetApplication( _ByVal sender As Object,
, ByVal e As System.EventArgs)
' Do the work
End Sub
Is there any actual /code/ in this method?
If /not/, the CLR may "edit it out" when it compiles the code (why call
a method with nothing in it?), thereby losing your breakpoint.

HTH,
Phill W.
Jun 13 '07 #2

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

Similar topics

9
by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my...
2
by: Bj?rn Toft Madsen | last post by:
Hi all, The network library I use communicates with my app using a callback function. This callback function is called with the type of message, a void pointer to he actual message and a user...
1
by: brad langhorst | last post by:
I'm going over a result set and adding results as levels on the tree control. when stepping through the code i see execution switch to the calling subroutine as soon as the parentnode.nodes.add...
8
by: Allan Ebdrup | last post by:
I'm writing some code where I have have a class that implements 4 methods (class A) I only want to call these methods from the base class if they have been overridden in a sub class (Class B) I...
4
by: mijalko | last post by:
Look at this code: class test { private bool bInitialized = false; private string strTest; public string str2 = ""; private void Init() { if (bInitialized)
12
by: Ratko | last post by:
Hi all, I was wondering if something like this is possible. Can a base class somehow know if a certain method has been overridden by the subclass? I appreciate any ideas. Thanks, Ratko
2
by: Jayram Rout | last post by:
Why do we need to put the Overridden method in a try and catch block if the overridden method does not throw any exception. The code goes here.... class Utils{ int getHeight(String x) throws...
6
by: wink | last post by:
I'd like to determine if a method has been overridden as was asked here: http://www.velocityreviews.com/forums/t564224-determining-whether-a-derived-class-overrides-a-virtual-memberfunction.html...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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
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,...

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.