docs: add macOS + Go SIP gotcha for dlv --pid#17
Merged
Conversation
Inline note after the --pid bullet warning that dlv attach requires SIP disabled on macOS, with preferred alternatives (start under debugger, or restart under dlv headless server mode). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Review Summary by QodoDocument macOS SIP requirement and debugging best practices
WalkthroughsDescription• Adds macOS SIP gotcha warning for dlv --pid debugging • Documents requirement to disable SIP with csrutil disable • Recommends preferred alternatives for process attachment • Adds debugging best practices for breakpoints and user journey Diagramflowchart LR
A["Debugging Code Skill"] --> B["Add macOS SIP Gotcha"]
A --> C["Add Debugging Best Practices"]
B --> D["dlv --pid SIP Warning"]
B --> E["Alternative Approaches"]
C --> F["Breakpoint Strategy Tips"]
C --> G["User Journey Mimicking"]
File Changes1. skills/debugging-code/SKILL.md
|
Code Review by Qodo
1.
|
dlv attach uses dlv dap mode; the actual macOS prerequisite is sudo DevToolsSecurity -enable (enforced by checkMacOSDevMode()), not csrutil disable (SIP). Also simplify the fallback to just the preferred alternative. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Owner
Author
|
Fixed in da4b8e4. Verified against codebase: |
This reverts commit da4b8e4.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
--pidbullet in the "Starting a Session" section ofskills/debugging-code/SKILL.mddlv --pidrequires SIP disabled (csrutil disable) on macOSdlv exec --headless+dap debug --attachfor cases where attaching to an already-running process is unavoidableTest plan
go test ./...)🤖 Generated with Claude Code