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
77
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Debugging Python using GDB
Figuring out why a Python daemon is hanging doesn't have to be so hard!
Nylas
May 31, 2016
More Decks by Nylas
See All by Nylas
Switching Off to Switch On!
nylas
1
110
Why Observability Matters
nylas
0
460
Billions of Emails Synced with Python
nylas
0
330
Profiling Python in Production
nylas
1
240
Plugins with React & Challenges with Data
nylas
0
130
Space City JS — Using Electron & React to Build N1
nylas
0
120
Waffle JS: Desktop Apps with Electron, React, & Observables
nylas
0
460
Electron, Node, and the New Desktop @ SFNode
nylas
0
350
The New Desktop: Electron, React, and Pixel-Perfect Native-Feeling Experiences — Forward 4 Web Summit
nylas
1
990
Other Decks in Programming
See All in Programming
自動化したのに回らない テスト運用の壁―AI時代の品質責任と生産性
mfunaki
0
400
freeeにおけるEvalsの実践例の紹介
freee
PRO
0
140
書籍「プロフェッショナルAI駆動開発」紹介スライド
juntaromatsumoto
0
280
片田舎のおっさん、 Swift Buildのダイアモンド問題解決の不具合修正PRを出すが、解決方法がキャッシュをしないようにすることであり、ビルド時間が伸びると言われてマージされないので高速化もする/swiftbuild
yimajo
0
250
Detecting Compromised CI with eBPF and Cilium Tetragon
lizrice
0
240
Built Our Own Background Agent at LayerX
layerx
PRO
10
6k
Hono + Inertia + React で LP を構築した話
oukayuka
2
140
My Marp Sample
sinoue0108
0
110
jsmini JavaScript Engine を作ってみた話
yosuke_furukawa
PRO
0
350
S3 を使うアプリケーションをローカル完結で動かすことに全力を注いでみた / Running S3 Apps Offline
contour_gara
0
580
Android CLI
fornewid
0
230
in-process GraphQL のすすめ #ginzajs
izumin5210
4
1.4k
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.1k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
280
Designing for Performance
lara
611
70k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
900
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
500
Making Projects Easy
brettharned
120
6.7k
[SF Ruby Conf 2025] Rails X
palkan
2
1.3k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
470
How to Talk to Developers About Accessibility
jct
2
520
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.4k
Darren the Foodie - Storyboard
khoart
PRO
3
3.7k
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]