• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 89
  • Last Modified:

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

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()
2 Solutions
AndyAinscowFreelance programmer / ConsultantCommented:
Put the breakpoint in that method instead.  You can look at the call stack to see where it was called from
Tapan PattanaikSenior EngineerCommented:
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() .

Tapan Pattanaik
brgdotnetcontractorAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now