Jump to content

[Solved]Eclipse breakpoint while not being in a GUI?


siiikooo0743

Recommended Posts

Hi,

 

i'm working with Eclipse and i want to debug my Mod.

But when i reach the breakpoint I'm not in a GUI, so the mouse is stuck in the center of the screen and I can't use My Mouse in Eclipse.

 

Is there any way to prevent that from happening?

 

siiikooo

Minecraft!

Link to comment
Share on other sites

  • 1 month later...

before and after your breakpoint release and grab the mouse:

 

Mouse.setGrabbed(false);
//breakpoint
Mouse.setGrabbed(true);

 

or alt+tab or windows key or any combinaison of key that will unlock the mouse anyway

 

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

or alt+tab or windows key or any combinaison of key that will unlock the mouse anyway

That doesnt work for me (I'm under Linux/Kubuntu)

 

before and after your breakpoint release and grab the mouse:

Thank you that should work.

 

For everyone who has the same problem:

Minecraft.getMinecraft().setIngameNotInFocus();

befor the breakpoint should also work fine.

 

siiikooo

Minecraft!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.