Channel | Publish Date | Thumbnail & View Count | Download Video |
---|---|---|---|
Publish Date not found | 0 Views |
– When debugging code, how can I go beyond inserting print statements? How can I pause the execution of the code and check the variables at that moment?
– Delve is a popular debugger in Go used by IDEs like Goland, VScode and vim-go. This talk aims to go through the basic architecture of Delve, the features and components of each layer and understand the stack trace.
– We will walk through a sample program, set breakpoints and get the address of the instruction in the assembly language debug output encoded in DWARF format and then analyze it. We will talk about various entries with debug information that DWARF defines.
– We will see how to use ptrace to rewrite data in the above address
– Next, we will learn how to manipulate CPU registers using PtraceGetRegs and PtraceSetRegs.
– The sample code also shows how step-in and step-out work in a procedure.
Please take the opportunity to connect with your friends and family and share this video with them if you find it useful.