On Mon, Apr 12, 2010 at 11:11 AM, Lukas Renggli <renggli@gmail.com> wrote:
Hi, can we inserts halt's into methods without modifying source code, using pragmas maybe?
This has nothing to do with pragmas. Pragmas do not change execution behavior of a compiled method. Also pragmas are in the source code, so you cannot add them without changing the source.
There was some work on annotations by Marcus, this goes more into the direction you are looking for.
What I would do is to replace a compiled method with a custom object that implements #run:with:in: and that opens a debugger at the right place.
Yes, that's more or less how VisualAge does it. See DbgBreakpointedMethod, a variable Subclass of CompiledMethod. -- Cheers, Peter
Lukas
-- Lukas Renggli www.lukas-renggli.ch
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project