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

Bug 353046

Summary: Enable the EGL Java debugger to work on a web server
Product: z_Archived Reporter: Justin Spadea <jspadea>
Component: EDTAssignee: Justin Spadea <jspadea>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Justin Spadea CLA 2011-07-25 16:36:58 EDT
Right now we use a javaagent to instrument classes on the fly, injecting them with the SMAP data. This won't work when we don't control the launch, such as code running on a web server. We need to change a couple things:

1. Add a new builder that adds SMAP data to the .class files on disk.
2. Implement some sort of listener that sits around checking for debug events, wrapping IJavaDebugTargets when they're created.
Comment 1 Justin Spadea CLA 2011-07-27 14:21:40 EDT
Added SMAPBuilder.java and DebugTargetWrapper.java to handle what was described in the original comment. Also added another hard-coded filter "org.apache."to get rid of about 20 stack frames when debugging a service on Tomcat. EclipseEGL2Java adds the SMAPBuilder to the target project if necessary.

The "Debug As > EGL Java Application" has been removed, now you just use the regular "Debug As > Java Application" and you'll get EGL debugging capabilities automatically.
Comment 2 Justin Spadea CLA 2011-09-07 16:28:28 EDT
Verified