Replies: 3 comments 7 replies
-
Very interesting. I haven't yet studied the debug protocol for Jupyter, but it's definitely a nice to have feature. There is an issue opened about this in issue #97 , maybe add the pointers there ? |
Beta Was this translation helpful? Give feedback.
-
@janpfeifer gdlv is the front end of Delve, just like ddd is the front end of gdb. We don't need jupyter when debugging, because you have already organized them all and put them in a main.go! we just let gdlv debug the main.go gonb_gdlv.mp4for CGO, maybe it is not fully featured(go-delve/delve#935) |
Beta Was this translation helpful? Give feedback.
-
Btw, v0.10.2 released with the Closing the topic for now! |
Beta Was this translation helpful? Give feedback.
-
go-delve/delve is the de facto debug tool for Go.
Debugging Go Code with GDB - The Go Programming Language
I find it useful. It does not have gui, but it has gui plugin. After a quick dive, I find aarzilli/gdlv has more stars and editor-independent.
For now, when I want use it, I have to check where the generated main.go is by
!*pwd
. Then I enter the command in the terminal:I found this process boring. Could it possible support it as a special command in gonb, like
%debug
or%gdlv
, something like that.Someone prefer
fmt.Println
, I believe it is just because debugger is hard to use...When we can use debugger likegdlv
freely, I believe it can save a lot time and typing(fmt.Println
)Beta Was this translation helpful? Give feedback.
All reactions