Hi Marcus,
At least in Squeak 4.1. one can see the fact its break-pointed in the debugger because the method in the debugger is decompiled.
Now the BreakPointmanager can remove all BreakPoints, all for a class and things like that easily. it knows if there is one. CompiledMethod has #hasBreakpoint. Setting breakpoints does not invalidate code (as opposed to self halt).
So there is everything to make a nice UI for it...
One thing it badly needs is a "browse breakpointed methods" or "list breakpointed methods"
The model is a bit limited. Only break on entry, no probes and so on. But it works. The limitations are mostly because everything else is hard to do with the bad model we have in the current system of doing structural reflection below method granularity...
We should add a nice UI for it *and* soon we can do oh so much better much easier :-)
Tell me more, tell me more, was it love at first sight?? What are you cooking up?
Opale compiler framework :) Opale is from cote d'opale and its lovely cap blanc nez and dunes :) http://a10.idata.over-blog.com/672x463/0/41/15/99/Entre-ciel-et-terre/Wissan... http://www.google.fr/images?client=safari&rls=en&q=cap+blanc+nez&oe=UTF-8&re... Now we just need the summer to get back in less than a year :)
best Eliot
Marcus
On Aug 17, 2010, at 8:56 PM, Stéphane Ducasse wrote:
In CodeHolder apparently there is support for breakpoint. Does anybody know how this works? Stef
toggleBreakOnEntry "Install or uninstall a halt-on-entry breakpoint"
| selectedMethod | self selectedClassOrMetaClass isNil ifTrue:[^self]. selectedMethod := self selectedClassOrMetaClass >> self selectedMessageName. selectedMethod hasBreakpoint ifTrue: [BreakpointManager unInstall: selectedMethod] ifFalse: [BreakpointManager installInClass: self selectedClassOrMetaClass selector: self selectedMessageName].
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Marcus Denker -- http://www.marcusdenker.de INRIA Lille -- Nord Europe. Team RMoD.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project