Skip to content
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

Debugger hooks #179

Merged
merged 9 commits into from Nov 15, 2016
Merged

Debugger hooks #179

merged 9 commits into from Nov 15, 2016

Conversation

lslezak
Copy link
Member

@lslezak lslezak commented Nov 15, 2016

Hook to the UI:: calls and detect the debug magic key event, start the Ruby debugger when it is received.

Blog Text (Proposal)

We have improved the Ruby debugger integration in YaST. So far you could start the debugger using the y2debugger=1 boot option or by setting the Y2DEBUGGER=1 environment variable. The new feature allows starting the Ruby debugger also later when the YaST module is already running.

Simply press the Shift+Ctrl+Alt+D keyboard shortcut (D as debug) and it will start the Ruby debugger. It works during installation and also in installed system (just make sure the byebug Ruby gem is installed).

Unfortunately this new feature works only in the Qt UI, the ncurses UI is not supported (currently it does not handle the debugging keyboard shortcut at all).

After pressing the keyboard shortcut the debugger window will pop up:

ruby_debugger

@lslezak lslezak added the blog label Nov 15, 2016
@jreidinger
Copy link
Member

LGTM

@lslezak lslezak merged commit b71fbd9 into master Nov 15, 2016
@lslezak lslezak deleted the debugger_hooks branch November 15, 2016 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants