Java with Eclipse: Debug mode enabled?

Springrbua

I started developing a game in Java with Eclipse. As you all know you have to debug a lot while coding. But I have the following issue:

My game is full-screen. If I run into a breakpoint it stops (like it should) and for some reason I can't switch window anymore (I am using Windows 7). I have to press Ctrl + Alt + Delete" and start the "Task manager" to be able to switch to Eclipse window and continue debugging.

So I tried to use window mode instead of full screen. Now if I run into a breakpoint the Eclipse window gets the focus (automatically) and I can debug easily.

So I thought it would be great to be in window mode, if and only if I am in debug mode, else it should be full screen.

For this I need to know if I am in debug mode or not. After reading this and this it seems like you can't check that easily, cause it depends on the VM you are using. Also it seems like the best solution is to use the Eclipse Debug/Run-Configuration and set a VM or program argument.

But how can I tell Eclipse to use this configuration only for debug mode? Or is there even a better way to determine, if debug is on or off?

Springrbua

It seems like the best way is to use arguments and pass them by using a Debug-Configuration and a Run-Configuration with the right values.

In Eclipse you have the possibility to add a Configuration to the Run list and the Debug list.
This can be done by going to the common tab inside the configurations and check the Debug and/or Run checkbox inside the "Display in favorite menu" section.
You can also edit the favorite list (add/remove/move entries) by clicking "Organize Favorites".

Note, that it does not prevent you from runing the Debug-Configuration or debuging the Run-Configuration.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Debug mode for C in eclipse

From Dev

Eclipse Java debug mode: how to get actual type of value?

From Dev

Twig - display template names if debug mode is enabled

From Dev

How to run Dropwizard app in debug mode with Eclipse?

From Dev

Eclipse: change description of variable in debug mode

From Dev

eclipse debug mode break point strange behaviour

From Dev

Eclipse prevents editing after debug mode entered

From Dev

How to exit debug mode in eclipse and clear earlier debug records

From Dev

Debug a running java application in eclipse?

From Dev

Java Socket connection only works in debug mode

From Dev

How can i know an application running in debug or run mode in eclipse

From Dev

How to debug Apache Storm in Local Cluster/Mode through eclipse

From Dev

Eclipse: Perl EPIC debug & release mode execution mismatch

From Dev

Eclipse doesn't stop in break points in debug mode

From Dev

Eclipse not starting tomcat-7 server in debug mode

From Dev

How can i know an application running in debug or run mode in eclipse

From Dev

Eclipse Kepler x64 debug mode tomcat not starting

From Dev

How can I hide interactive console in debug mode in PyDev Eclipse?

From Dev

Eclipse not showing all variables in viewer during debug mode

From Dev

Eclipse Debug mode : Console output isn't working

From Dev

ASP.NET Core fails to start in debug mode when SSL is enabled

From Dev

FileWriter only writes first line (Append Mode enabled, Java)

From Dev

debug java program step by step in Eclipse

From Dev

How to terminate a remote Eclipse debug on java

From Dev

Debug java product without eclipse etc

From Dev

Java eclipse IDE line speed debug

From Dev

How to terminate a remote Eclipse debug on java

From Dev

JAVA - eclipse debug remove/change a key in map

From Dev

Debug TestNg java code in eclipse that uses Ant

Related Related

  1. 1

    Debug mode for C in eclipse

  2. 2

    Eclipse Java debug mode: how to get actual type of value?

  3. 3

    Twig - display template names if debug mode is enabled

  4. 4

    How to run Dropwizard app in debug mode with Eclipse?

  5. 5

    Eclipse: change description of variable in debug mode

  6. 6

    eclipse debug mode break point strange behaviour

  7. 7

    Eclipse prevents editing after debug mode entered

  8. 8

    How to exit debug mode in eclipse and clear earlier debug records

  9. 9

    Debug a running java application in eclipse?

  10. 10

    Java Socket connection only works in debug mode

  11. 11

    How can i know an application running in debug or run mode in eclipse

  12. 12

    How to debug Apache Storm in Local Cluster/Mode through eclipse

  13. 13

    Eclipse: Perl EPIC debug & release mode execution mismatch

  14. 14

    Eclipse doesn't stop in break points in debug mode

  15. 15

    Eclipse not starting tomcat-7 server in debug mode

  16. 16

    How can i know an application running in debug or run mode in eclipse

  17. 17

    Eclipse Kepler x64 debug mode tomcat not starting

  18. 18

    How can I hide interactive console in debug mode in PyDev Eclipse?

  19. 19

    Eclipse not showing all variables in viewer during debug mode

  20. 20

    Eclipse Debug mode : Console output isn't working

  21. 21

    ASP.NET Core fails to start in debug mode when SSL is enabled

  22. 22

    FileWriter only writes first line (Append Mode enabled, Java)

  23. 23

    debug java program step by step in Eclipse

  24. 24

    How to terminate a remote Eclipse debug on java

  25. 25

    Debug java product without eclipse etc

  26. 26

    Java eclipse IDE line speed debug

  27. 27

    How to terminate a remote Eclipse debug on java

  28. 28

    JAVA - eclipse debug remove/change a key in map

  29. 29

    Debug TestNg java code in eclipse that uses Ant

HotTag

Archive