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
技術同人誌をMCP Serverにしてみた
74th
1
510
システム成長を止めない!本番無停止テーブル移行の全貌
sakawe_ee
1
150
Is Xcode slowly dying out in 2025?
uetyo
1
240
Google Agent Development Kit でLINE Botを作ってみた
ymd65536
2
210
ソフトウェア品質を数字で捉える技術。事業成長を支えるシステム品質の マネジメント
takuya542
0
400
なぜ適用するか、移行して理解するClean Architecture 〜構造を超えて設計を継承する〜 / Why Apply, Migrate and Understand Clean Architecture - Inherit Design Beyond Structure
seike460
PRO
1
720
High-Level Programming Languages in AI Era -Human Thought and Mind-
hayat01sh1da
PRO
0
690
Result型で“失敗”を型にするPHPコードの書き方
kajitack
4
560
Flutterで備える!Accessibility Nutrition Labels完全ガイド
yuukiw00w
0
140
C++20 射影変換
faithandbrave
0
560
Discover Metal 4
rei315
2
110
今ならAmazon ECSのサービス間通信をどう選ぶか / Selection of ECS Interservice Communication 2025
tkikuc
20
3.8k
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
270
20k
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
Gamification - CAS2011
davidbonilla
81
5.3k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.8k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.5k
Thoughts on Productivity
jonyablonski
69
4.7k
Statistics for Hackers
jakevdp
799
220k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Visualization
eitanlees
146
16k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
800
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.5k
Scaling GitHub
holman
459
140k
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]