<br><br><div class="gmail_quote">On Tue, Aug 24, 2010 at 1:00 PM, John Chludzinski <span dir="ltr">&lt;<a href="mailto:john.chludzinski@gmail.com">john.chludzinski@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u>Still not certain what problem, </u><div><u><br></u></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><u>MapCache := WeakIdentityKeyDictionary new, </u></div>
</blockquote><div><u><br></u></div><div><u>(in DebuggerMethodMap class&gt;&gt;voidMapCache) solves?<br></u></div></blockquote><div><br></div><div>The use of a WeakIdentityKeyDictionary  stops the debugger from holding onto obsolete methods, which in turn stops it form holding onto obsolete classes.</div>
<div>The map cache itself speeds up the debugger, avoiding running the compiler for the most recent N debugged methods.</div><div><br></div><div>does that help?</div><div><br></div><div>Eliot </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><u></u><br><div class="gmail_quote">On Mon, Aug 23, 2010, <span style="font-family:Arial, Helvetica, sans-serif;font-size:medium"><b>Levente Uzonyi</b> <a href="mailto:squeak-dev%40lists.squeakfoundation.org?Subject=%5Bsqueak-dev%5D%20Squeak%204.1%20debugger%20problems.&amp;In-Reply-To=AANLkTim_buXMB1JEoL7JOwUPz5tMFj%2Bbv4BKeOtZKCD1%40mail.gmail.com" title="[squeak-dev] Squeak 4.1 debugger problems." style="color:rgb(0, 0, 255)" target="_blank">leves at elte.hu </a></span> wrote:<br>

<span style="font-family:Arial, Helvetica, sans-serif;font-size:medium"><pre style="font-family:monospace;margin-left:3em;font-size:12px"><div class="im">
On Mon, 23 Aug 2010, John Chludzinski wrote:

&gt;<i> I set a number of break points in my code (self break.).  Had no problems
</i>&gt;<i> for a while BUT then I got the emergency debugger in the upper left corner
</i>&gt;<i> (Object&gt;&gt;primitiveError:).  Looking at the call stack showed a number of
</i>&gt;<i> problems:
</i>&gt;<i>
</i>&gt;<i> 1) CompiledMethod&gt;&gt;asString does NOT exist!
</i></div><div class="im">
#asString is defined in ByteArray, the superclass of CompiledMethod, but 
if you send it to a CompiledMethod, it will raise an error.

&gt;<i>
</i></div><div class="im">&gt;<i> 2) DebuggerMethodMap&gt;&gt;cacheDebugMap:forMethod:  appears to be deleting the
</i>&gt;<i> most recent (not oldest) entry from MapCache?
</i></div><div class="im">
You&#39;re right. That method has several other issues, it should be 
rewritten.


Levente
</div></pre></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="&#39;courier new&#39;, monospace"><br></font><font color="#888888">
</font></blockquote></div><br></div>
<br><br>
<br></blockquote></div><br>