Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to debug this?(Code after mouseOver and before mouseDown)
How to debug this? [message #1471666] Thu, 13 November 2014 08:53 Go to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
Hello!

I'm trying to debug a GUI, which 'lags' (1-1.7sec) after mouseOver and before mouseDown!

if i add an breakpoint on mouseOver, the action is not started so i cant hop through.
if i add the breakpoint on mouseDown the action is already done...

how can i debug this?
Re: How to debug this? [message #1471679 is a reply to message #1471666] Thu, 13 November 2014 09:02 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6585
Registered: July 2009
Senior Member
In Mars there are new utilities to debug UI lags and report them into
the error log!

Tom

On 13.11.14 09:53, Ludwig Moser wrote:
> Hello!
>
> I'm trying to debug a GUI, which 'lags' (1-1.7sec) after mouseOver and
> before mouseDown!
>
> if i add an breakpoint on mouseOver, the action is not started so i cant
> hop through.
> if i add the breakpoint on mouseDown the action is already done...
>
> how can i debug this?
Re: How to debug this? [message #1471680 is a reply to message #1471679] Thu, 13 November 2014 09:03 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6585
Registered: July 2009
Senior Member
.... and debugging is in this case the wrong thing to do - you are better
of having log statements so that you see which point of your code is
reached at what point.

Tom

On 13.11.14 10:02, Tom Schindl wrote:
> In Mars there are new utilities to debug UI lags and report them into
> the error log!
>
> Tom
>
> On 13.11.14 09:53, Ludwig Moser wrote:
>> Hello!
>>
>> I'm trying to debug a GUI, which 'lags' (1-1.7sec) after mouseOver and
>> before mouseDown!
>>
>> if i add an breakpoint on mouseOver, the action is not started so i cant
>> hop through.
>> if i add the breakpoint on mouseDown the action is already done...
>>
>> how can i debug this?
>
Re: How to debug this? [message #1471743 is a reply to message #1471680] Thu, 13 November 2014 09:52 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
that was my first thought too!
i put log statements on start end end of each method (logging even the time it takes)
but there is nothing i can track down, which causes that lag.

in the meantime i seperated my control to a standalone application.
in this application its working fine, withoug lag and instant response even with ten-thousand entries!
(in the test application i generate the component the same way as i do in my productive environment - using the same framework - to be sure all listeners etc are the same)

Thomas Schindl wrote on Thu, 13 November 2014 04:03
.... and debugging is in this case the wrong thing to do - you are better
of having log statements so that you see which point of your code is
reached at what point.

Tom

Re: How to debug this? [message #1471756 is a reply to message #1471743] Thu, 13 November 2014 10:02 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
i noticed that if the control has no focus its lagging, if it got focus its speedy

my control is based on the TableCombo from nebula.
is there a simpler/better way to create a Custom Combo? (i guess the problem is the Focus handling of the control - which seems to be very complex to me)
Re: How to debug this? [message #1471777 is a reply to message #1471756] Thu, 13 November 2014 10:24 Go to previous message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
i found out what it is...
computeSize()
it was the only method i did not log!
Previous Topic:Jface--FullScreent No Use
Next Topic:How to hide Excel toolbars using SWT
Goto Forum:
  


Current Time: Tue Mar 02 02:16:23 GMT 2021

Powered by FUDForum. Page generated in 0.02459 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top