How to terminate previous debug session when new one is launched?
Asked Answered
B

3

6

In Flash Builder 4 you are able to have the previous debugging session be terminated as soon as you launch a new one. In eclipse previous debugging sessions stick around until you manually terminate them.

Does anyone know if it is possible to have eclipse terminate previous debug sessions when launching a new one, and if so how?

(I am using MyEclipse for Spring 8.6)

Brewery answered 24/2, 2011 at 14:57 Comment(0)
I
2

Not the best answer but... you could just make terminating easier on yourself, try Ctrl+F2

You can also go to Window > Preferences > General > Keys and search for Terminate and Relaunch. I'm trialing Alt+F11.

Alternatively you terminate on build with scripts like here: http://www.eclipse.org/forums/index.php?t=rview&goto=647327&th=202549

Ivett answered 27/6, 2011 at 22:22 Comment(1)
Terminate and Relaunch makes sense. However, you have to normally launch and start debugging the first time (for me this is binded to F11), and just then you can use Terminate and Relaunch (I binded it to Shift+F11).Syneresis
S
0

First launch normal debugging session.
After that, while in debugging mode, you can use Terminate and Relaunch.

Here is how to bind the keys to the commands properly (Window/Preferences -> Settings/General/Keys):

enter image description here

In this case it is:

  • F11 for Debug
  • Shift+F11 for Terminate and Relaunch

Note: when assigning the keys, pay attention to When column.

Syneresis answered 27/1, 2022 at 14:51 Comment(0)
S
-1

If you press Shif during launching the new run, the old one will be terminated automatically.

Selfconsistent answered 24/10, 2018 at 9:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.