Solved

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

Posted on 2016-09-25
3
39 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
Comment Utility
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
Comment Utility
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
Comment Utility
:)
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
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 video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now