Skip to content

docs(#501/#512): case study — attaching the debugger to itself - #516

Merged
debugmcpdev merged 2 commits into
mainfrom
docs/case-study-self-attach
Aug 27, 2026
Merged

docs(#501/#512): case study — attaching the debugger to itself#516
debugmcpdev merged 2 commits into
mainfrom
docs/case-study-self-attach

Conversation

@debugmcpdev

Copy link
Copy Markdown
Collaborator

Adds docs/case-studies/self-attach-fork-release-and-the-500ms-ack-window.md (linked from the README next to the existing rdbg case study): the #501 fork-release fix (#514), the residual self-attach failure it exposed, the strace heisenbug, root-causing the lost init ACK (#512, #515) by live-patching the subject through its own evaluate_expression, and the side findings (#513, the #502 negative result, one unexplained SIGKILL).

🤖 Generated with Claude Code

https://claude.ai/code/session_01NgA5kHzkhFZLqbWNZRTsVG

Documents the #501 dogfooding session: the fork-release fix, the residual
0/6 self-attach failure it exposed, the strace heisenbug, root-causing the
lost init ACK by live-patching the subject through its own
evaluate_expression, and the #512 latch fix that took the stress harness to
6/6. Links the side findings (#513, the #502 negative result, the
unexplained one-time SIGKILL) and the takeaways.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NgA5kHzkhFZLqbWNZRTsVG
@debugmcpdev
debugmcpdev enabled auto-merge (squash) August 27, 2026 14:19
@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@debugmcpdev
debugmcpdev merged commit 946054b into main Aug 27, 2026
9 checks passed
@debugmcpdev
debugmcpdev deleted the docs/case-study-self-attach branch August 27, 2026 15:19
debugmcpdev added a commit that referenced this pull request Aug 27, 2026
The full RCA narrative behind PR #522: how a js attach pause_execution
could return success forever without pausing anything, why the routing
hole a code-reading pass produced was real but not the field mechanism
(js-debug's smart-stepper converting user pauses into an endless step
chase through internal frames was), the adapterConfig {trace: true}
technique that made the adapter narrate its own CDP decisions, and the
third bug the fix's e2e caught that interactive repro timing could not
reach (pre-adoption dispatch swallowed without a response).

Side findings link to the issues they became: #518 (trace parent/child
discriminator), #519 (routing logs invisible in the per-session proxy
log), #520 (ensureInitialStop's 12s threads poll on js attach).

Continues the docs/case-studies series (#510, #516); README links it.


Claude-Session: https://claude.ai/code/session_01XtvNu3aNB1nw1URRL5UTgR

Co-authored-by: CI Bot <ci@example.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant