Skip to content

Windows: Do not drop into debugger when no MAME window has focus #13902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

npwoods
Copy link
Contributor

@npwoods npwoods commented Jul 1, 2025

On Windows, the debugger has a special Windows-specific feature that drops the user into the debugger if the key sequence is pressed. This seems to be present so that the key sequence triggers dropping into the debugger not just from the main window, but also from debugger windows.

This has also created an oddity where pressing the debugger key sequence from a MAME window will cause a "User-initiated break" but pressing it from a debugger window will cause "Internal breakpoint" to be displayed.

However, while this logic has a check to not apply when to a MAME window, it seems to also activate even if MAME itself is not in focus. This change ensures that a stray debugger sequence in a completely unrelated application won't cause the user to be dropped in the debugger.

On Windows, the debugger has a special Windows-specific feature that drops the user into the debugger if the key sequence is pressed.  This seems to be present so that the key sequence triggers dropping into the debugger not just from the main window, but also from debugger windows.

This has also created an oddity where pressing the debugger key sequence from a MAME window will cause a "User-initiated break" but pressing it from a debugger window will cause "Internal breakpoint" to be displayed.

However, while this logic has a check to not apply when to a MAME window, it seems to also activate even if MAME itself is not in focus.  This change ensures that a stray debugger sequence in a completely unrelated application won't cause the user to be dropped in the debugger.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant