Learn how debuggers work by building your own – Sayani Bhattacharjee

Learn how debuggers work by building your own – Sayani Bhattacharjee

HomeGopherCon UKLearn how debuggers work by building your own – Sayani Bhattacharjee
Learn how debuggers work by building your own – Sayani Bhattacharjee
ChannelPublish DateThumbnail & View CountDownload Video
Channel AvatarPublish Date not found Thumbnail
0 Views
Debuggers are one of the most useful tools when reading and writing code. Have you ever wondered if you can create your own debugger? In this talk, we will learn how to create a debugger.

– 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.

If you enjoyed watching Learn how debuggers work by building your own – Sayani Bhattacharjee.
Don't Forget to Say Thank You comment below... ^_^