Home:ALL Converter>How to set a breakpoint on a Class NOT a Line in Eclipse?

How to set a breakpoint on a Class NOT a Line in Eclipse?

Ask Time:2014-03-03T21:45:19         Author:TeFa

Json Formatter

I simply would like to start debugging once any function is invoked in a specific set of classes.

Is it possible to achieve this in Eclipse ? or do I have to set a breakpoint on each function in each class I want to debug?

UPDATE:

I didn't ask how to set a breakpoint in eclipse. I would like to debug a class without knowing which function is going to be called.

UPDATE 2:

(I am going to make my problem more clear)

I was requested to fix a bug in an application (Which I didn't implement). I managed to narrow down the related classes to this bug. The problem each class has over 30 functions. And I don't know exactly which functions are invoked. So I was thinking if its possible to set a breakpoint somehow on the class itself in order to start debugging once a function within this class is invoked.

I would appreciate any help,

Tefa

Author:TeFa,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/22148420/how-to-set-a-breakpoint-on-a-class-not-a-line-in-eclipse
Sionnach733 :

I don't think you can select a class for debugging but you could go to the Outline view in eclipse, select all the methods in the class, right click and select Toggle Method Breakpoint\n\n",
2014-03-03T14:04:40
yy