Tighten Live Debugger global hook typing - #4508
Merged
Merged
Conversation
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Apr 21, 2026
🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: 6fc9b0b | Docs | Datadog PR Page | Give us feedback! |
Bundles Sizes Evolution
🚀 CPU Performance
🧠 Memory Performance
|
This was referenced Apr 21, 2026
watson
changed the base branch from
watson/DEBUG-5296/add-live-debugger
to
graphite-base/4508
April 21, 2026 07:35
watson
force-pushed
the
watson/DEBUG-5296/more-types
branch
from
April 21, 2026 07:38
8027d31 to
bc24fd5
Compare
watson
force-pushed
the
graphite-base/4508
branch
from
April 21, 2026 07:38
bf9a162 to
b9da4f3
Compare
watson
changed the base branch from
graphite-base/4508
to
watson/DEBUG-5296/add-live-debugger
April 21, 2026 07:38
watson
changed the base branch from
watson/DEBUG-5296/add-live-debugger
to
graphite-base/4508
April 21, 2026 08:17
watson
force-pushed
the
watson/DEBUG-5296/more-types
branch
from
April 21, 2026 08:18
bc24fd5 to
6f0a5f4
Compare
watson
force-pushed
the
graphite-base/4508
branch
from
April 21, 2026 08:18
b9da4f3 to
0040ee8
Compare
5 tasks
watson
changed the base branch from
graphite-base/4508
to
watson/DEBUG-5296/add-live-debugger
April 21, 2026 08:18
watson
changed the base branch from
watson/DEBUG-5296/add-live-debugger
to
graphite-base/4508
April 21, 2026 09:12
watson
force-pushed
the
watson/DEBUG-5296/more-types
branch
from
April 21, 2026 09:13
6f0a5f4 to
eaee933
Compare
watson
force-pushed
the
graphite-base/4508
branch
from
April 21, 2026 09:13
0040ee8 to
653aee9
Compare
watson
changed the base branch from
graphite-base/4508
to
watson/DEBUG-5296/add-live-debugger
April 21, 2026 09:13
watson
changed the base branch from
watson/DEBUG-5296/add-live-debugger
to
graphite-base/4508
April 22, 2026 12:24
watson
force-pushed
the
watson/DEBUG-5296/more-types
branch
from
April 22, 2026 21:03
eaee933 to
05a34bf
Compare
watson
force-pushed
the
graphite-base/4508
branch
from
April 22, 2026 21:03
653aee9 to
7d1efe7
Compare
watson
changed the base branch from
graphite-base/4508
to
watson/DEBUG-5296/add-live-debugger
April 22, 2026 21:03
watson
changed the base branch from
watson/DEBUG-5296/add-live-debugger
to
graphite-base/4508
April 23, 2026 10:42
watson
force-pushed
the
watson/DEBUG-5296/more-types
branch
from
April 23, 2026 10:59
05a34bf to
c5ebc6b
Compare
watson
changed the base branch from
graphite-base/4508
to
watson/DEBUG-5296/add-live-debugger
April 23, 2026 10:59
watson
changed the base branch from
watson/DEBUG-5296/add-live-debugger
to
graphite-base/4508
May 7, 2026 05:30
Replace `any` casts when installing debugger globals with an explicit typed global interface so the runtime stays lint-clean without changing behavior.
watson
force-pushed
the
graphite-base/4508
branch
from
May 12, 2026 09:14
8130067 to
e739e7e
Compare
watson
force-pushed
the
watson/DEBUG-5296/more-types
branch
from
May 12, 2026 09:14
c5ebc6b to
6fc9b0b
Compare
watson
marked this pull request as ready for review
May 12, 2026 09:14
5 tasks
thomas-lebeau
approved these changes
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Motivation
Avoid unsafe
anycasts in the Live Debugger global hook setup.Changes
Replace
anycasts used when assigning$dd_entry,$dd_return,$dd_throw, and$dd_probesonglobalThiswith a small explicitDebuggerInstrumentationGlobaltype inpackages/debugger/src/entries/main.ts.Test instructions
packages/debugger/src/entries/main.ts.init().Checklist