Marcus Denker wrote:
On 09.01.2009, at 16:19, Stéphane Ducasse wrote:
one of the point about breakpoint is that they should not get the method dirty. I know that some breakpoint code has been harvested but I do not remember how to use it.
There is a very simple breakpoint mechanism in Pharo (in Squeak, too, but it was a bit broken there).
To try: There is a "toggle break on entry" item in the menu of methods in the old browser.
Technically, this just recompiles the method with a call to #break at the beginning.
Could be improved a lot.
And the simplest improvement would be to just rename it to 'Set breakpoint' so that everyone will recognize its meaning immediatelly. Next thing is to put a breakpoint mark at the beginning of the method. All this is already done by Dale in GemTools so in theory it just needs to be copied from there... Janko
On Jan 9, 2009, at 10:27 AM, Janko Mivšek wrote:
Dale Henrichs wrote:
----- "Janko Mivšek" <janko.mivsek@eranova.si> wrote:
| And when you are already doing that, introduce also breakpoints back in | Pharo as they are on GLASS GemTools. Very intuitive and the same as on | most other Smalltalks. If they can be supported in GemTools, why | aren't yet in Pharo? Any technical reason?
Breakpoints in GLASS/GemTools are taking advantage of the breakpoint feature in the GemStone/S VM. Remember, Squeak/Pharo are used as an OmniBrowser client for GLASS -- the debugger is running in a GemStone vm and the UI is running in the Squeak/Pharo vm. What I like about breakpoints in GemTools is the simplicity from usability standpoint. And similarity of use to other Smalltaltalks.
And because their UI part is implemented in OmniBrowser on GemTools, they should be easily ported back to Pharo OmniBrowser, even that breakpoints in GS/S are implemented differently than in Squeak.
In other words, let we port the UI for breakpoints first, on top of whatever Squeak supports for breakpoints currently. Later breakpoints can be enhanced on VM level as well.
Janko
-- Janko Mivšek AIDA/Web Smalltalk Web Application Server http://www.aidaweb.si
_______________________________________________ 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
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Janko Mivšek Svetovalec za informatiko Eranova d.o.o. Ljubljana, Slovenija www.eranova.si tel: 01 514 22 55 faks: 01 514 22 56 gsm: 031 674 565