Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] Re: Re:How soon will the bug 201550 be fixed

Hello Jae,
Every time you click step over button, the view will send a tcl snippet to debug engine to evaluate, and get the return value to refresh the view.
In my project, the evaluation and the refresh will take some time, so if you click the step over button so fast that the previous evalution and refresh has not finished yet,  errors occured. 
 
I think you should send a tcl snippet which will not finish right away (say 10000 times circulation) to debug engine to evalute in order to see the error.
 
These two methods are in the DbgpPacketReceiver,
public synchronized void put(Object key, Object value) {
   map.put(key, value);
   notifyAll();
  }
public synchronized Object get(Object key) throws InterruptedException {
   while (!map.containsKey(key)) {
    wait();
   }
   return map.remove(key);
  }

 

You can see in the get method,  it will wait the response until it is put into the map. If the stp over button is pressed too fast, InterruptedException will be thrown. I guess this is the reason. If there is any unclear, please let me know. Thanks.

 

Best regards,

Joy


 
 


 
----- Original Message ----
From: "dltk-dev-request@xxxxxxxxxxx" <dltk-dev-request@xxxxxxxxxxx>
To: dltk-dev@xxxxxxxxxxx
Sent: Friday, September 7, 2007 12:00:26 AM
Subject: dltk-dev Digest, Vol 7, Issue 1

Send dltk-dev mailing list submissions to
    dltk-dev@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
    https://dev.eclipse.org/mailman/listinfo/dltk-dev
or, via email, send a message with subject or body 'help' to
    dltk-dev-request@xxxxxxxxxxx

You can reach the person managing the list at
    dltk-dev-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dltk-dev digest..."


Today's Topics:

   1. Re: Re:How soon will the bug 201550 be fixed (Jae Gangemi)


----------------------------------------------------------------------

Message: 1
Date: Wed, 5 Sep 2007 22:41:35 -0400
From: "Jae Gangemi" <jgangemi@xxxxxxxxx>
Subject: Re: [Dltk-dev] Re:How soon will the bug 201550 be fixed
To: "DLTK Developer Discussions" <dltk-dev@xxxxxxxxxxx>
Message-ID:
    <f8e1c5150709051941g7aac8161oc40d500dd774d205@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

joy -

  thanks for the example.

  how are you causing the InterruptedException to fire?

--
-jae
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://dev.eclipse.org/mailman/listinfo/dltk-dev/attachments/20070905/de5daaac/attachment.html

------------------------------

_______________________________________________
dltk-dev mailing list
dltk-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dltk-dev


End of dltk-dev Digest, Vol 7, Issue 1
**************************************



Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.

Back to the top