?
Solved

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

Posted on 2016-09-25
3
Medium Priority
?
84 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 45

Accepted Solution

by:
AndyAinscow earned 1000 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 22

Assisted Solution

by:Tapan Pattanaik
Tapan Pattanaik earned 1000 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

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month16 days, 5 hours left to enroll

850 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