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
71
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
450
Billions of Emails Synced with Python
nylas
0
310
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
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
670
AtCoder Conference 2025
shindannin
0
1k
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
6k
ThorVG Viewer In VS Code
nors
0
770
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
140
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
300
Architectural Extensions
denyspoltorak
0
280
2026年 エンジニアリング自己学習法
yumechi
0
130
CSC307 Lecture 01
javiergs
PRO
0
690
CSC307 Lecture 03
javiergs
PRO
1
490
CSC307 Lecture 04
javiergs
PRO
0
660
Fluid Templating in TYPO3 14
s2b
0
130
Featured
See All Featured
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
55
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
110
Leo the Paperboy
mayatellez
4
1.4k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
140
30 Presentation Tips
portentint
PRO
1
210
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
64
Build The Right Thing And Hit Your Dates
maggiecrowley
38
3k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
A designer walks into a library…
pauljervisheath
210
24k
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]