Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Debugging Python using GDB
Search
Nylas
May 31, 2016
Programming
0
68
Debugging Python using GDB
Figuring out why a Python daemon is hanging doesn't have to be so hard!
Nylas
May 31, 2016
Tweet
Share
More Decks by Nylas
See All by Nylas
Switching Off to Switch On!
nylas
1
96
Why Observability Matters
nylas
0
430
Billions of Emails Synced with Python
nylas
0
290
Profiling Python in Production
nylas
1
230
Plugins with React & Challenges with Data
nylas
0
110
Space City JS — Using Electron & React to Build N1
nylas
0
110
Waffle JS: Desktop Apps with Electron, React, & Observables
nylas
0
440
Electron, Node, and the New Desktop @ SFNode
nylas
0
330
The New Desktop: Electron, React, and Pixel-Perfect Native-Feeling Experiences — Forward 4 Web Summit
nylas
1
960
Other Decks in Programming
See All in Programming
LT 2025-06-30: プロダクトエンジニアの役割
yamamotok
0
620
20250613-SSKMvol.15
diostray
0
100
PHP 8.4の新機能「プロパティフック」から学ぶオブジェクト指向設計とリスコフの置換原則
kentaroutakeda
2
680
なぜ「共通化」を考え、失敗を繰り返すのか
rinchoku
1
610
PostgreSQLのRow Level SecurityをPHPのORMで扱う Eloquent vs Doctrine #phpcon #track2
77web
2
410
Java on Azure で LangGraph!
kohei3110
0
170
LINEヤフー データグループ紹介
lycorp_recruit_jp
0
1.5k
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
330
「Cursor/Devin全社導入の理想と現実」のその後
saitoryc
0
610
A2A プロトコルを試してみる
azukiazusa1
2
1.3k
ruby.wasmで多人数リアルタイム通信ゲームを作ろう
lnit
2
320
Team operations that are not burdened by SRE
kazatohiei
1
280
Featured
See All Featured
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
20
1.3k
Adopting Sorbet at Scale
ufuk
77
9.4k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
20k
Documentation Writing (for coders)
carmenintech
72
4.9k
Gamification - CAS2011
davidbonilla
81
5.3k
The Cult of Friendly URLs
andyhume
79
6.5k
Navigating Team Friction
lara
187
15k
Typedesign – Prime Four
hannesfritz
42
2.7k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
24k
Testing 201, or: Great Expectations
jmmastey
42
7.6k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
GitHub's CSS Performance
jonrohan
1031
460k
Transcript
Debugging Python with GDB Karim Hamidou
[email protected]
http://khamidou.com
Title
• lsof • strace/ltrace • dtrace (if you’re lucky) Traditional
UNIX tools
@app.before_request def start(): # fingers crossed! print ‘REQUEST ‘ +
request if not request.user: … Modifying Python libraries in /usr/lib/python
There’s a better way!
None
def f(): x = 0 d = dict(v=1, y='L') while
True: x = x + 2 print x f()
• attach/detach • py-bt • py-list • py-locals GDB Commands
Cheat sheet
Your Name | @yourname |
[email protected]
github.com/nylas Thank you! http://khamidou.com
—
[email protected]