| Summary: | Eclipse does not save VM arguments in Run Configuration | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | stu <stu24mail> | ||||
| Component: | Debug | Assignee: | JDT-Debug-Inbox <jdt-debug-inbox> | ||||
| Status: | RESOLVED NOT_ECLIPSE | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | curtis.windatt.public | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
stu
Are you creating a java launch configuration? I just tried the following and the arguments were saved: 1) Create a java launch configuration 2) Run it 3) Shut down the program and open the launch config 4) Set an argument or two (-XmX512M) 5) Launch it again 6) Shut it down 7) Open the launch config Result: Added arguments are still there Created attachment 188072 [details]
Run Configuration Screenshot
I think this would be a web application configuration. I've attached a screenshot. Note the the VM arguments start with a default of -Xmx512m, but any other arguments I add (as in the -javaagent: example), are cleared out. I was confused on whether to report this here or under GWT, but since the VM arguments tabs seem to be a generic eclipse option, and launch files are stored under .metadata/.plugins/org.eclipse.debug.core - it seemed to be more in eclipse then GWT? (In reply to comment #3) > I was confused on whether to report this here or under GWT, but since the VM > arguments tabs seem to be a generic eclipse option, and launch files are stored > under .metadata/.plugins/org.eclipse.debug.core - it seemed to be more in > eclipse then GWT? The tab is available for other launch configs to use. However, in your case something is overwriting the stored argument. I suspect that somewhere in the GWT launcher there is code that sets the arguments to the default. Since you say that the launch config always gets a default setting of -XmX512M, I would start looking at how that default is set. This works fine in the Java application launch configs and Eclipse Application launch configs. (In reply to comment #4) > (In reply to comment #3) > > I was confused on whether to report this here or under GWT, but since the VM > > arguments tabs seem to be a generic eclipse option, and launch files are stored > > under .metadata/.plugins/org.eclipse.debug.core - it seemed to be more in > > eclipse then GWT? > > The tab is available for other launch configs to use. However, in your case > something is overwriting the stored argument. I suspect that somewhere in the > GWT launcher there is code that sets the arguments to the default. > > Since you say that the launch config always gets a default setting of -XmX512M, > I would start looking at how that default is set. > > This works fine in the Java application launch configs and Eclipse Application > launch configs. Ok. Cool. This is homebrew project - so I'll be looking at it tonight.. I'll update when I get more information. For now, I'll mark this resolved, and re-open if I get more information - is it bad form to update bugzilla with the solution even if it's not eclipse related? As long as I re-open & then close it out right away? (In reply to comment #5) > For now, I'll mark this resolved, and re-open if I get more information - is it > bad form to update bugzilla with the solution even if it's not eclipse related? > As long as I re-open & then close it out right away? I wouldn't reopen the bug and then re-close it. Just add your fix to the comments. You can also add the keyword "readme". |