Android Studio IDE: Break on Exception

To break on all exceptions, caught or uncaught: Open the Breakpoints window via Run -> View Breakpoints. The Breakpoints dialog appears. In the left pane, scroll to the bottom. Select Any exception under Java Exception Breakpoints With Any exception selected, on the right pane, configure as follows: Suspend: checked All: selected Condition: !(this instanceof java.lang.ClassNotFoundException) … Read more

Is there any way to set a breakpoint in gdb that is conditional on the call stack?

Update: There is now a better answer to this question: use GDB _is_caller convenience function. The need you describe comes up quite often, usually in the context of some_utility_fn being called a lot, but you only are interested in the call which comes from some_other_fn. You could probably script this entire interaction using the new … Read more

Break on a change of variable value

You don’t even need an IDE – you can use “Object.watch()”: Object.Watch Tutorial If you use any one debugger, I’d strongly recommend Firebug. For all your Javascript, HTML and CSS needs :-): http://getfirebug.com/javascript =========================================================== Update for 2019: Object.Watch is Ancient History. Uncoincidentally, it’s unavailable in most contemporary browsers. My personal favorite JS debugging tool these … Read more