On Mon, Apr 12, 2010 at 11:11 AM, Lukas Renggli <[email protected]> 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 > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >
_______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
