jnativehook icon indicating copy to clipboard operation
jnativehook copied to clipboard

Pointer frozen during debugging

Open lawrenceztang opened this issue 6 years ago • 2 comments

In the following code:

public void nativeMousePressed(NativeMouseEvent e) { mouseClickX = e.getX(); }

A debug breakpoint is at the second line: mouseClickX = e.getX();

In Intellij, the pointer on the screen becomes very hard to move when the breakpoint is hit, making debugging inside the mouse listeners almost impossible.

lawrenceztang avatar Aug 02 '18 15:08 lawrenceztang

Because this library is hooked into the OS's input thread, there is no easy way to work around this issue. The native library needs to detect the Java debugger hook and unregister the global hook to prevent the mouse / keyboard blocking.

kwhat avatar May 09 '19 22:05 kwhat

Phew, I thought my system was pooping out with this.. Hmm.

mysticdrew avatar Apr 18 '21 22:04 mysticdrew