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

Allow TracePoint re-entry during DAP's evaluation #23

Merged
merged 2 commits into from
Aug 22, 2023

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Aug 17, 2023

This avoids the debugger's TracePoint conflicting with Zeitwerk's, which was reported in ruby#408

The solution is simply wrapping tp_allow_reentry like ThreadClient#frame_eval_core does.

And since the change is also essential for triggering another breakpoint during a suspension, I used nested breakpoint call for test.

Closes https://github.com/Shopify/ruby-dev-exp-issues/issues/1022

@st0012 st0012 added this to the 2023-Q3 milestone Aug 17, 2023
@st0012 st0012 self-assigned this Aug 17, 2023
@st0012 st0012 added the bug Something isn't working label Aug 17, 2023
This avoids the TracePoint conflict with Zeitwerk, which was reported
in ruby#408
@st0012 st0012 force-pushed the fix-dap-evaluation-with-zeitwerk branch from e7d7993 to 505d415 Compare August 22, 2023 17:08
@st0012 st0012 merged commit dc449c6 into issues-workaround Aug 22, 2023
11 of 13 checks passed
@st0012 st0012 deleted the fix-dap-evaluation-with-zeitwerk branch August 22, 2023 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants