Log in

View Full Version : Break on Data


Krakken
January 21st, 2005, 06:25
Hi,

I'd like to know if there is a way to set a breakpoint to catch certain data such as a specified string during the program's execution.

By this, I mean for example, I set the string "Hello World" as a global breakpoint. If at any time the program see's that string, it will break execution.

Thanks in advance.

1bitshort
January 21st, 2005, 07:30
I'm not sure if you could do it with a script. You'd probably need to write your own debugger (trivial, the debug loop is a very simply piece of code) that looks at each register as if it was a pointer and examines the contents of each (= slow).