You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See #13
The current way to set a breakpoint in godebug is to call the function
`godebug.SetTrace()`. I don't like this for various reasons, the top one
being that it requires adding an import statement in addition to the
breakpoint line.
This commit changes the breakpoint marker to this:
_ = "breakpoint"
This is only one line, is a no-op without godebug, and is unlikely to
conflict with users' program code.
Copy file name to clipboardExpand all lines: testdata/run.yaml
+1-1
Original file line number
Diff line number
Diff line change
@@ -332,6 +332,6 @@ creates:
332
332
- $TMP/breakpointInDependency.go
333
333
334
334
transcript: |
335
-
godebug run: Ignoring breakpoint at testpkg/pkg.go:6 because package "testpkg" has not been flagged for instrumentation. See 'godebug help run'.//slashes
335
+
godebug run: Ignoring breakpoint at testpkg/pkg.go:4 because package "testpkg" has not been flagged for instrumentation. See 'godebug help run'.//slashes
0 commit comments