Skip to content

Conversation

jakebailey
Copy link
Member

I guess this is not similar enough to debugger;, doing it without a debugger attach just does SIGTRAP. ☹️

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the runtime.Breakpoint call from the debug package's Fail function. The change addresses an issue where runtime.Breakpoint() causes a SIGTRAP signal when no debugger is attached, making it unsuitable for general use.

  • Commented out the runtime.Breakpoint() call in the Fail function
  • Removed the unused "runtime" import

Copy link
Member

@weswigham weswigham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'm surprised this isn't conditional - is there a dlv.IsDebuggerAttached() or something we could wrap it in?

@jakebailey
Copy link
Member Author

At best we could set a build tag that would apply when starting a launch task...

@jakebailey jakebailey enabled auto-merge August 19, 2025 01:47
@jakebailey jakebailey added this pull request to the merge queue Aug 19, 2025
Merged via the queue into main with commit 7f19f5b Aug 19, 2025
22 checks passed
@jakebailey jakebailey deleted the jabaile/remove-breakpoint branch August 19, 2025 02:02
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.

2 participants