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

Block Step Into Debugging for a function

Hi,

Is it possible to block the debugger to Step Into a function ( in VS 2005 or
VS2003 ) - Even If I press F11 (the Step Into Key)?

////////////////////////////////////////////////////////////////////////////
//////////////////
Example (plz read comment )

void Main()
{
Foo1(); // Pressing F11 should not take the control into the
definition of Foo2
Foo2(); // Debugger should work normally on this
}

// Control should not come here when Stepped Into this function
void Foo1()
{
}

// Debugger should work normally on this
void Foo2()
{
}
////////////////////////////////////////////////////////////////////////////
//////////////////

Its like hiding a particular function from the debugger - in above example
Foo2.

Practical Implementation Need will be the .Instance method of a singleton
class - which no one wants to look at while debugging.

Am I asking for too much :-)

Thank You,
rawCoder
Mar 7 '06 #1
2 931
See System.Diagnostics.DebuggerHiddenAttribute and/or
System.Diagnostics.DebuggerStepThroughAttribute

Mar 7 '06 #2
Simon ,

That Works Great,

For those of you who want to know the difference between the two.

System.Diagnostics.DebuggerStepThroughAttribute (Breakpoints are allowed in
the method)

System.Diagnostics.DebuggerHiddenAttribute (Breakpoints are not allowed in
the method)
Thanx.
"Simon Dahlbacka" <si*************@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
See System.Diagnostics.DebuggerHiddenAttribute and/or
System.Diagnostics.DebuggerStepThroughAttribute

Mar 8 '06 #3

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

Similar topics

0
by: mYsZa | last post by:
hi all! i've got a little problem with debugging my class library written in managed C++. a small exe (like "hello world") application (managed c++) creates the object of a class defined in 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...
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...
6
by: ruca | last post by:
Hi, Can I call two script blocks for different languages in my ASP.NET code? I have a button than when clicked it must open a popup window to return some values for two other controls that I...
5
by: Brett Romero | last post by:
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...
2
by: rawCoder | last post by:
Hi, Is it possible to block the debugger to Step Into a function ( in VS 2005 or VS2003 ) - Even If I press F11 (the Step Into Key)? ...
1
by: Robin Mark Tucker | last post by:
I have a problem with my web service - I can step into/through web methods, line by line, but the VS debugger absolutely will not step into a VB.NET method in a library the web service is using. ...
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...
2
by: Whasigga | last post by:
Hello I am working on a project to export data from a query into an Excel file. I have a form with a button on it and the button when clicked runs a function that is supposed to run the query and...
1
by: Greg Setnes | last post by:
I am using JavaScript with my C# web application, so I'm not sure I should be posting a JavaScript question here, but here it goes anyways. Currently, I can step through my C# code in the Code...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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...

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.