about memory breakpoint

10 views
Skip to first unread message

aj3423

unread,
Oct 4, 2010, 6:13:35 AM10/4/10
to fir...@googlegroups.com
in some debugger like ollydbg, user can set a break point to a memory address, when there is a read/write access to that memory address, the debugger will break.  I think it is very useful in javascript debugging. Sometime my variable value is changed and I couldn't found where it is modified. It'll be great if I can set a variable break point to variables like a.b.c,  then it breaks when the code does a.b.c = 123, 
Is it possible for the enhancement? Will firebug add the new 'variable break point' in the future version?

Thanks.

Honza (Jan Odvarko)

unread,
Oct 4, 2010, 7:41:12 AM10/4/10
to Firebug
There is already partial support for this within the DOM panel.

For example, if you have an object a = {prop1: 1, prop2: 2} you can
create a breakpoint for its properties.

1) Select the DOM panel
2) Expand the object |a|
3) Create a breakpoint for |prop1| by clicking on the breakpoint
column.
4) Change the value -> Firebug's debugger should break and switch to
the Script panel showing the source line that caused the break;

See more here:
http://getfirebug.com/doc/breakpoints/demo.html#dom


Honza
Reply all
Reply to author
Forward
0 new messages