Jeremy Schlatter

Results 31 comments of Jeremy Schlatter

Another example of this pattern, in case it's helpful: someone made a shell script wrapper like this [for hugo](https://github.com/khos2ow/hugo-wrapper).

This is doable. It's not something I have wanted myself, though -- can you give an example where this would be helpful, so I can better understand the use case?...

In some cases it will also be possible to preserve the original line number by putting new statements on the same line, e.g. ``` go godebug.Line(ctx, example_in_go_scope, 6); x :=...

I'm interested in this. I'm not sure what it will take to get it to work, though.

The problem happens because, in the above example, `a/b/c` is instrumented but `a/b` is not. godebug should be fixed to make this work, but in the meantime you can also...

Strange. I'm not sure what happened here. What version of Go are you using?

Here's the stack trace you get from runtime.Stack(): http://play.golang.org/p/TzttmeRRD0 The runtime package also exports a [Func](http://golang.org/pkg/runtime/#Func) type that we could use to build a cleaner trace.

Here's an example of using runtime.Func to make a cleaner stack trace: http://play.golang.org/p/3BiuMP_ocl

Good point, thanks! godebug could have an option to use an arbitrary wrapper instead of the go command. The two tricky parts that come to mind now are: (1) The...