Solved

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

Posted on 2016-09-25
3
49 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Server Error 11 58
Web Form VB.Net  import CSV 4 38
start a process from a service 3 22
Dot Net 4.6.1 installation fails on W2012 R2 server 14 19
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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

773 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