Bug 574034 - relaunch on exit code
Summary: relaunch on exit code
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.20   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-04 17:26 EDT by Fei Ding CLA
Modified: 2023-06-10 14:11 EDT (History)
1 user (show)

See Also:


Attachments
Relaunch on exit code (18.95 KB, patch)
2021-06-04 17:26 EDT, Fei Ding CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fei Ding CLA 2021-06-04 17:26:25 EDT
Created attachment 286531 [details]
Relaunch on exit code

This feature is available in PDE debug & run. The PDE launch delegate can detect the exit code (23) and auto relaunch the debug session.

When I'm developing other java GUI project I constantly restart the application so I add a restart menu item for the similar logic. The start script of my application can play the role of launcher which detects the exit code and relaunch the application. I think it would be very convenient if JDT debug can do this too, which would be a general conditional relaunching on exit code.

Currently the LaunchListener is copied from PDE and modified a bit for this.

Please take a look at the patch and share your thoughts.

Fei Ding
Regards
Comment 1 Sarika Sinha CLA 2021-06-14 06:57:02 EDT
Please provide a gerrit change for this feature, we can review this.
Comment 2 Eclipse Genie CLA 2023-06-10 14:11:15 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.