Skip to content

Commit

Permalink
Allow TracePoint reentry during DAP's evaluation
Browse files Browse the repository at this point in the history
This avoids the TracePoint conflict with Zeitwerk, which was reported
in ruby#408
  • Loading branch information
st0012 committed Aug 17, 2023
1 parent 1450ad0 commit e7d7993
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/debug/server_dap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,9 @@ def value_inspect obj, short: true

def dap_eval b, expr, _context, prompt: '(repl_eval)'
begin
b.eval(expr.to_s, prompt)
tp_allow_reentry do
b.eval(expr.to_s, prompt)
end
rescue Exception => e
e
end
Expand Down

0 comments on commit e7d7993

Please sign in to comment.