|
Re: Catching message send: msg#00161lang.smalltalk.squeak.beginners
Sorry I forgot to tell that I want to catch evry message Scott Wallace a écrit : > One common, if unartful, technique for doing this kind of thing while > debugging is temporarily to stash a reference to the specific object in > a global, and then, in the method in question, check to see if the > receiver is that object. > > Thus, in an Inspector on the object in question, evaluate, say, > "Smalltalk at: #AA put: self". > > Then in the method in question, put something like "self == AA ifTrue: > [self halt]" > > To clean up afterwards, you can evaluate "Smalltalk removeKey: #AA > ifAbsent: []" and, of course remove the debugging code from the method. > > Cheers, > > -- Scott > > > On Oct 31, 2006, at 2:32 AM, Mathieu wrote: > >> Hi, >> >> Is there a way to catch message send to a specifoque object? >> >> Thanks >> Math >>
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Catching message send, Mathieu |
|---|---|
| Next by Date: | Re-2: Catching message send, Frank Urbach |
| Previous by Thread: | Re: Catching message send, Scott Wallace |
| Next by Thread: | Re: Catching message send, Frank Urbach |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |