$30 off During Our Annual Pro Sale. View Details »
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
70
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
100
Why Observability Matters
nylas
0
440
Billions of Emails Synced with Python
nylas
0
300
Profiling Python in Production
nylas
1
230
Plugins with React & Challenges with Data
nylas
0
120
Space City JS — Using Electron & React to Build N1
nylas
0
110
Waffle JS: Desktop Apps with Electron, React, & Observables
nylas
0
450
Electron, Node, and the New Desktop @ SFNode
nylas
0
340
The New Desktop: Electron, React, and Pixel-Perfect Native-Feeling Experiences — Forward 4 Web Summit
nylas
1
970
Other Decks in Programming
See All in Programming
Microservices rules: What good looks like
cer
PRO
0
1.3k
Navigation 3: 적응형 UI를 위한 앱 탐색
fornewid
1
310
Full-Cycle Reactivity in Angular: SignalStore mit Signal Forms und Resources
manfredsteyer
PRO
0
130
Building AI Agents with TypeScript #TSKaigiHokuriku
izumin5210
6
1.3k
dotfiles 式年遷宮 令和最新版
masawada
1
760
テストやOSS開発に役立つSetup PHP Action
matsuo_atsushi
0
150
connect-python: convenient protobuf RPC for Python
anuraaga
0
400
LLM Çağında Backend Olmak: 10 Milyon Prompt'u Milisaniyede Sorgulamak
selcukusta
0
120
Tinkerbellから学ぶ、Podで DHCPをリッスンする手法
tomokon
0
120
これだけで丸わかり!LangChain v1.0 アップデートまとめ
os1ma
6
1.8k
ゲームの物理 剛体編
fadis
0
330
從冷知識到漏洞,你不懂的 Web,駭客懂 - Huli @ WebConf Taiwan 2025
aszx87410
2
2.3k
Featured
See All Featured
A Modern Web Designer's Workflow
chriscoyier
698
190k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
1k
The Cost Of JavaScript in 2023
addyosmani
55
9.3k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
3k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
1
97
KATA
mclloyd
PRO
32
15k
Bash Introduction
62gerente
615
210k
Testing 201, or: Great Expectations
jmmastey
46
7.8k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
720
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.8k
Statistics for Hackers
jakevdp
799
230k
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]