Learn how debuggers work by building your own one - Sayani Bhattacharjee

  Рет қаралды 5,187

GopherCon UK

GopherCon UK

Күн бұрын

Debuggers are one of the most useful tools while reading and writing code. Ever wondered if you can build your own? In this talk, we will learn and build one.
How to move beyond putting print statements while debugging code? How to pause the code at execution and inspect variables at that instance?
Delve is a popular debugger in Go that is used by IDEs like Goland, VScode, vim-go. This talk aims to go through the basic architecture of delve, the features, and components of every layer, and understand stack trace.
We will walk through a sample program and set breakpoints, and get the address of the instruction in the debug output of the assembly language, which is encoded in DWARF format, and then parse it. We will talk about various debugging information entries that DWARF defines.
We will see how to use ptrace to rewrite data in the above address
Next, we will learn how CPU registers can be manipulated usingPtraceGetRegs and PtraceSetRegs.
The sample code will also demonstrate how step into, step out works in a procedure

Пікірлер: 11
@devigupta2487
@devigupta2487 Жыл бұрын
As a first timer well delivered... Keep it up.
@0777deep
@0777deep Жыл бұрын
Great one Sayani! Loved it.
@rpanda_old
@rpanda_old 11 ай бұрын
white theme vscode surprisingly looks really comfortable
@AnkitChauhan-rt3zg
@AnkitChauhan-rt3zg Жыл бұрын
Super cool 🎉
@binitagupta
@binitagupta Жыл бұрын
😍😍😍 Super proud of you Sayani!
@nancychauhan397
@nancychauhan397 Жыл бұрын
Great talk Sayani 👏
@rajhasan6984
@rajhasan6984 Жыл бұрын
জুই জুই 🔥🔥🔥
@swagatochatterjee7104
@swagatochatterjee7104 Жыл бұрын
Seita keda?
@PraveenKumar-wx5yt
@PraveenKumar-wx5yt Жыл бұрын
Arnav sent me here to drop a comment :)
@12crenshaw
@12crenshaw 6 ай бұрын
white theme - opinion rejected
@ru2979
@ru2979 3 ай бұрын
😂😂
Understanding the Go Compiler - Jesús Espino
42:55
GopherCon UK
Рет қаралды 4,3 М.
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.
I Sent a Subscriber to Disneyland
0:27
MrBeast
Рет қаралды 104 МЛН
-5+3은 뭔가요? 📚 #shorts
0:19
5 분 Tricks
Рет қаралды 13 МЛН
The Most INSANE AI News This Week! 🤯
13:50
Julian Goldie SEO
Рет қаралды 12 М.
eBPF Superpowers for Go programmers - Liz Rice
38:42
GopherCon UK
Рет қаралды 10 М.
How NOT to Write a Test in Go - Amir Malka
34:21
GopherCon UK
Рет қаралды 1,6 М.
Let's Create a Compiler (Pt.1)
1:11:03
Pixeled
Рет қаралды 611 М.
Obscure Go Optimisations - Bryan Boreham
51:07
GopherCon UK
Рет қаралды 11 М.
CppCon 2018: Simon Brand “How C++ Debuggers Work”
1:01:00
The Most Important Skill You Never Learned
34:56
Web Dev Simplified
Рет қаралды 229 М.
Andrew Kelley   Practical Data Oriented Design (DoD)
46:40
ChimiChanga
Рет қаралды 173 М.
strace feels like magic - let’s fix that (with Rust)
16:21
fasterthanlime
Рет қаралды 50 М.
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.