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
俺とVSCode Python Debugger Extension
Search
Satoru Takeuchi
PRO
October 19, 2024
Technology
1
290
俺とVSCode Python Debugger Extension
kanazawa.rb #146 LTスライドです
https://kzrb.doorkeeper.jp/events/178412
Satoru Takeuchi
PRO
October 19, 2024
Tweet
Share
More Decks by Satoru Takeuchi
See All by Satoru Takeuchi
低レイヤソフトウェア技術者が YouTuberとして食っていこうとした話
sat
PRO
3
2.8k
ポーリングと割り込み
sat
PRO
1
33
Rook: Intro and Deep Dive With Ceph
sat
PRO
1
120
会社員しながら本を書いてきた知見の共有
sat
PRO
3
800
デバイスにアクセスするデバイスファイル
sat
PRO
1
44
ファイルシステムのデータを ブロックデバイスへの操作で変更
sat
PRO
1
35
デバイスドライバ
sat
PRO
0
58
マルチスレッドの実現方法 ~カーネルスレッドとユーザスレッド~
sat
PRO
2
130
共有メモリ
sat
PRO
3
75
Other Decks in Technology
See All in Technology
AWS CDK 入門ガイド これだけは知っておきたいヒント集
anank
5
770
セキュアなAI活用のためのLiteLLMの可能性
tk3fftk
1
360
QuickSight SPICE の効果的な運用戦略~S3 + Athena 構成での実践ノウハウ~/quicksight-spice-s3-athena-best-practices
emiki
0
290
無理しない AI 活用サービス / #jazug
koudaiii
0
100
Copilot coding agentにベットしたいCTOが開発組織で取り組んだこと / GitHub Copilot coding agent in Team
tnir
0
200
CDK Vibe Coding Fes
tomoki10
1
640
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.2k
60以上のプロダクトを持つ組織における開発者体験向上への取り組み - チームAPIとBackstageで構築する組織の可視化基盤 - / sre next 2025 Efforts to Improve Developer Experience in an Organization with Over 60 Products
vtryo
3
1.9k
[SRE NEXT 2025] すみずみまで暖かく照らすあなたの太陽でありたい
carnappopper
2
470
RapidPen: AIエージェントによる高度なペネトレーションテスト自動化の研究開発
laysakura
1
160
Deep Security Conference 2025:生成AI時代のセキュリティ監視 /dsc2025-genai-secmon
mizutani
4
3k
Data Engineering Study#30 LT資料
tetsuroito
1
260
Featured
See All Featured
Music & Morning Musume
bryan
46
6.7k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
840
Building an army of robots
kneath
306
45k
Speed Design
sergeychernyshev
32
1k
It's Worth the Effort
3n
185
28k
Building Adaptive Systems
keathley
43
2.7k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Java REST API Framework Comparison - PWX 2021
mraible
31
8.7k
For a Future-Friendly Web
brad_frost
179
9.8k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
161
15k
Transcript
俺とVSCode Python Debugger Extension Oct. 19th, 2024 kanazawa.rb#146 Satoru Takeuchi
X: satoru_takeuchi 1
VSCode Python Debugger Extensionとは? • VSCodeからGUIで操作できるPython用デバッガ 2
使い方: breakpointを仕掛ける • ソースファイルの行番号の左あたりを押す 3
使い方: 実行 • Ctrl+Shift+Pの後に”Python Debugger: … : Pythonファイルのデバッグ”を押す ◦ F5を押してもいいよ
4
使い方: breakpointで止まる。後は好きにする 再開 step over step in step out 再起動
停止 5
デモ 6
Flaskアプリのデバッグもできるぞ • breakpointをしかける 7
疑問 • flaskアプリは”./app.py”ではなく”flask run ./app.py”のように動かす • さっきの単にファイルを実行するデバッグ方法は使えないぞ 8
ソリューション • Flask専用のデバッガ実行モードがある ◦ 他にもいっぱいモードがあるっぽい 9
デモ 10
flaskのrouteの仕組みを知りたい • route関数にbreakpointを仕掛ける • 設定ファイルを書き換えてライブラリコードもデバッグ対象にする 11
デモ 12
おわり • VSCode Python Debugger Extensionすごい • めっちゃ作り込んである 13