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

Update the workaround for debug gem #1723

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Nov 28, 2023

Motivation

The current approach of disabling debug loading makes it impossible to debug Tapioca itself with the gem.

Implementation

But by lazily activate the debugger, we can avoid the side-effect as well as allowing breakpoints to lazily load the debugger.

It's the same as doing require "debug/prelude", which only defines the breakpoint methods.

Tests

The current approach of disabling `debug` loading makes it impossible to
debug Tapioca itself with the gem. But by lazily activate the debugger, we can
avoid the side-effect as well as allowing breakpoints to lazily load the
debugger.

It's the same as doing `require "debug/prelude"`, which only defines the
breakpoint methods.
@st0012 st0012 added the bugfix label Nov 28, 2023
@st0012 st0012 self-assigned this Nov 28, 2023
@st0012 st0012 requested a review from a team as a code owner November 28, 2023 18:27
@st0012 st0012 merged commit 6a1aec4 into main Nov 29, 2023
29 checks passed
@st0012 st0012 deleted the improve-debugger-workaround branch November 29, 2023 17:33
@shioyama
Copy link
Member

shioyama commented Dec 7, 2023

Thank you ❤️

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.

3 participants