How to find Methods?

Torge Husfeldt torge.husfeldt at gmx.de
Sun Aug 31 12:22:21 UTC 2003


Hi Markus,
On Sun, 31 Aug 2003 14:04:44 +0200, Markus Fritsche 
<Fritsche.Markus at gmx.net> wrote:

> Hi!
>
> How do I find the Method(-source) that belongs to, for example,
> "CompiledMethod 806"?
>
> Regards, Markus
>
If you have an inspector open on it (i guess you have), just type 'self 
getSourceFromFile'. If it comes up empty (a Text on: '') it is
very likely that the source for this method is gone.
You can double-check by typing 'theWhoArray := self who'. Logically it 
should come up
with #(unknown unknown), otherwise you could retrieve the source with:
theWhoArray first sourceCodeAt: theWhoArray second.
If all this fails you can still try to read the decompiled source.
To do so just type self 'decompileString'.

HTH,
Torge


-- 
Der Mensch kann wohl tun, was er will, aber er kann nicht wollen, was er 
will.
(Schopenhauer)



More information about the Squeak-dev mailing list