[squeak-dev] Squeak 4.1 debugger problems.

Levente Uzonyi leves at elte.hu
Mon Aug 23 22:16:11 UTC 2010


On Mon, 23 Aug 2010, John Chludzinski wrote:

> I set a number of break points in my code (self break.).  Had no problems
> for a while BUT then I got the emergency debugger in the upper left corner
> (Object>>primitiveError:).  Looking at the call stack showed a number of
> problems:
>
> 1) CompiledMethod>>asString does NOT exist!

#asString is defined in ByteArray, the superclass of CompiledMethod, but 
if you send it to a CompiledMethod, it will raise an error.

>
> 2) DebuggerMethodMap>>cacheDebugMap:forMethod:  appears to be deleting the
> most recent (not oldest) entry from MapCache?

You're right. That method has several other issues, it should be 
rewritten.


Levente

>
> 3) DebuggerMethodMap>>cacheDebugMap:forMethod: seems to loose entries in
> MapCache?  After getting the keys for MapCache and trying to index
> into MapCache, an errorKeyNotFound occurs.  I re-initialized the class
> variables (MapCache, MapCacheEntries) by executing: DebuggerMethodMap
> class>>voidMapCache.   This seemed to cure the problem BUT I did notice the
> comment in DebuggerMethodMap>>cacheDebugMap:forMethod:  "There be race
> conditions and reentrancy issues here".  What's the deal with this?
>
> ---John
>



More information about the Squeak-dev mailing list