简体   繁体   中英

Java Swing or AWT API - Setting breakpoint on global mouse click event

Most browser dev tools allow to set breakpoints on mouse events (without having to specify the source code line numbers) for JavaScript which can be used to find the handler(s) being executed when the event occurs.

Does something similar in functionality for Java (Swing or AWT API) exist? Or are there any commands or APIs or IDEs to accomplish this?

It appears that there is no known command, API, IDEs, or debuggers that allow to set breakpoints on global events for Java yet.

So, manually pausing the debugger in the beginning and going through the cycle of pausing, continuing, stepping in, and stepping out seems to be the only solution at the moment to step into the event handler code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM