Solved

Is there a way to set breakpoints whenver a method is called.

Posted on 2016-09-25
3
55 Views
Last Modified: 2016-09-25
I have several method calls to the same method. Below is a simple example where two calls are made on separate lines.
Is there a way to tell the debugger to set a breakpoint wherever the method GetSumTotal() is called ?

RIght now I have to go to each line individually and set a break point. I could save much time if I were able to jet tell the debugger
to set a breakpoint whenver a certain method is called.

1     GetSumTotal()
.
.
300 GetSumTotal()
0
Comment
Question by:brgdotnet
3 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 250 total points
ID: 41814842
Put the breakpoint in that method instead.  You can look at the call stack to see where it was called from
0
 
LVL 21

Assisted Solution

by:Tapan Pattanaik
Tapan Pattanaik earned 250 total points
ID: 41814899
Hi brgdotnet ,

Directly put the break point on description of method GetSumTotal() and click on F5. It will directly hit on the description of method  GetSumTotal() .

Regards,
Tapan Pattanaik
0
 
LVL 2

Author Closing Comment

by:brgdotnet
ID: 41814945
:)
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question