Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337436

Summary: Need a way to turn on RDT debugging, since rdt-server.jar keeps getting overwritten
Product: [Tools] PTP Reporter: Beth Tibbitts <beth>
Component: RDTAssignee: Project Inbox <ptp-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: g.watson
Version: 4.0.6   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Beth Tibbitts CLA 2011-02-17 08:49:11 EST
Using RemoteTools with RDT.
To try to debug, want to turn on debug in rdt-server.jar

(Like this: 
rdt-server.jar is on remote system in ~/.eclipsesettings
unzip rdt-server.jar (e.g. to a subdirectory) , edit rsecomm.properities changing debug_level (default is 0) to:
    debug_level=3
Suggest adding a comment or something too to change size of file so you can assure it's changed from file info.
rezip as e.g. rdt-server-debug.jar and copy to rdt-server.jar to put back in place.
Be sure to do this while the remote connection isn't running. I close eclipse, replace file, re-open.
Log info should be written to ~/.eclipse/RSE/<userid>/rsecomm.log
)

However the client seems to keep rewriting the original rdt-server.jar, or else there is
some other reason i can never see any debug info.

This may be a RemoteTools and not RDT problem. 

When does RemoteTools (re) upload the rdt-server.jar?
Comment 1 Beth Tibbitts CLA 2011-02-17 08:51:35 EST
Actually I just tried this again while writing up this bug and it works.
I now have lots of debug info in the log.

I chose to go ahead and submit the bug so it's documented how to turn on RDT debug when used with remote tools.
I did have alot of problems with 4.0.6 doing this yesterday; was able to do it with 4.0.5 today.
That probably isn't the difference, it's probably user error. :-)

Closing as INVALID since i believe it now works.
But I do still have the question (Greg?) of when the jar gets copied and re-copied.
Comment 2 Greg Watson CLA 2011-02-17 09:03:18 EST
Currently, the jar will be uploaded if its size changes. Feel free to add a preference to disable this for debugging.