Menu
  • HOME
  • TAGS

Setting a conditional breakpoint in Firebug for Mac

firefox,firebug,conditional-breakpoint

To be precise you need to right-click the breakpoint column or right-click inside the line and then choose Edit Breakpoint Condition... from the context menu. If you do so the condition editor should appear, which looks like this on Windows (on Mac it's black): There is currently (Firebug 2.0.6) no...

Condition breakpoint on higher stack frames

debugging,visual-c++,conditional-breakpoint

Yes, that's technically possible. No great joy, mind you, you'll have to tell the debugger to dereference a pointer to obtain the value of the local variable in the other stack frame. A simple example: #include "stdafx.h" #include <iostream> void foo() { for (int ix = 0; ix < 5;...

Conditional Breakpoints on Call Stack with Netbeans and Java

java,debugging,netbeans,conditional-breakpoint

You can add a private method testing conditions on the stack and call it from the conditional breakpoint. Here is a proof of concept: public class DebugStack { private int x = 0; private void m1(){ x++; m2(); } private void m2(){ x+=3; } private boolean insideMethod(String methodName){ for (StackTraceElement...

Is it possible to use a symbolic breakpoint (or similar) with a dynamic property setter?

objective-c,debugging,breakpoints,conditional-breakpoint

You can implement the setter yourself and put a breakpoint in there. Implementing a core data property setter is a bit different than normal. Something like this should work: - (void)setFoo:(NSObject *)foo { [self willChangeValueForKey:@"foo"]; [self setPrimitiveValue:foo forKey:@"foo"]; [self didChangeValueForKey:@"foo"]; } ...