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
I haven't used delve, so I can't advise you on that.
For debugging, I would like to get the values of variables in time (go back and forth) and I don't think traditional debuggers allow that other then breakpoints and then go forward.
I mostly just code with the occasional printf, but It's getting to the point where the GoDebug cmd is usable.
For example: for the #13, i'm calling this line inside the editor (editor.go directory). GoDebug run --dirs=core editor.go --sessionname=onefiledebug
Inside the instance launched (a new editor with a session prepared for some tests) I'm calling a 4k.sh with the example from #13.
On the original editor, the files core/erow.go and core/terminalfilter.go start getting annotations where I can go back and forth in the values to try to understand the program better after it has crashed.
It's not perfect and a bit slow but it is starting to serve me well.
dlv fails to debug editor binary and returns the following error.
The object dump indeed shows that the binary has an
.eh_frame
dlv
cannot read.eh_frame
https://github.com/derekparker/delve/issues/467How would I go about debugging
editor
using thedlv
debugger. How do you debug the code?The text was updated successfully, but these errors were encountered: