Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How can I view SWT Image while debugging?
How can I view SWT Image while debugging? [message #696288] Wed, 13 July 2011 12:15 Go to next message
Mario Marinato is currently offline Mario Marinato
Messages: 27
Registered: March 2011
Location: Brazil
Junior Member
I added a breakpoint on my SWT-based application, and when Eclipse stops at it during a debug session I want to view the image referenced by an Image variable.

If I right click the variable and choose watch or inspect, all I see is what is returned from Image's toString method.

Is it possible?


Mário Marinato
From Brazil
Re: How can I view SWT Image while debugging? [message #714250 is a reply to message #696288] Wed, 10 August 2011 02:44 Go to previous messageGo to next message
Vijay Raj
Messages: 608
Registered: July 2009
Senior Member
It all depends on how important and usefull is this requirement.
A plugin can be written to view the image in the outline view or in a seperate view.
If at all more people require this..will try to impliment this.

Intrested ppl please vote.


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Re: How can I view SWT Image while debugging? [message #714530 is a reply to message #696288] Wed, 10 August 2011 14:33 Go to previous messageGo to next message
Thomas Singer is currently offline Thomas Singer
Messages: 75
Registered: July 2009
Member
I'd write a utility method which saves the file to disk (and optionally launches the graphic application to view it). When debugging, you can execute this method easily with the image variable as parameters.
(no subject) [message #714641 is a reply to message #714530] Thu, 11 August 2011 03:14 Go to previous message
Eclipse User
Originally posted by:

On 2011-08-10 20:33, Thomas Singer wrote:
> I'd write a utility method which saves the file to disk (and optionally
> launches the graphic application to view it). When debugging, you can
> execute this method easily with the image variable as parameters.

I agree. I have solved similar problems exactly in that way.

- Daniel
Previous Topic:REPOST: Detached views to be brought up independently (Parent shell behaviour)
Next Topic:(no subject)
Goto Forum:
  


Current Time: Wed Apr 16 18:53:00 EDT 2014

Powered by FUDForum. Page generated in 0.01958 seconds