How to put a global shortcut to restart servers in debug mode in Eclipse?

Asked

Viewed 244 times

0

How can I set up Eclipse (I am currently using Kepler) so that by pressing a keyboard shortcut, for example, F12, the Tomcat server starts or restarts in Debug mode?

I managed to make the F12 shortcut work, but I had to necessarily set up to In Servers View. And that makes me go to the server tab so I can apply the shortcut.

If I put another option, for example, In Windows or Java Source Editing he does not turn, speak: The Selection Did not contain any Resource that can run on a server.

How can I get around this problem? That is, how I can start and restart the server from a global keyboard shortcut from anywhere in the eclipse?

I add that at the moment I need to use two servers, IE, my list of Servers have two Tomcats and I would prefer a solution that could trigger a given server always. But if it’s possible to make the shortcut work, I can try to leave only one server on the list. Anyway, being able to customize for the shortcut always act on some of them would be even better.

1 answer

1

In my I start the server as debug holding Alt+Shift+D, then drop and then press R.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.