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
ポーリングと割り込み
sat
PRO
0
14
Rook: Intro and Deep Dive With Ceph
sat
PRO
1
110
会社員しながら本を書いてきた知見の共有
sat
PRO
3
790
デバイスにアクセスするデバイスファイル
sat
PRO
1
39
ファイルシステムのデータを ブロックデバイスへの操作で変更
sat
PRO
1
34
デバイスドライバ
sat
PRO
0
49
マルチスレッドの実現方法 ~カーネルスレッドとユーザスレッド~
sat
PRO
2
130
共有メモリ
sat
PRO
3
71
マルチスレッドプログラム
sat
PRO
3
59
Other Decks in Technology
See All in Technology
[SRE NEXT 2025] すみずみまで暖かく照らすあなたの太陽でありたい
carnappopper
2
470
Introduction to Sansan, inc / Sansan Global Development Center, Inc.
sansan33
PRO
0
2.7k
ABEMAの本番環境負荷試験への挑戦
mk2taiga
5
1.3k
american aa airlines®️ USA Contact Numbers: Complete 2025 Support Guide
aaguide
0
500
Snowflake Intelligenceという名のAI Agentが切り開くデータ活用の未来とその実現に必要なこと@SnowVillage『Data Management #1 Summit 2025 Recap!!』
ryo_suzuki
1
160
OpenTelemetryセマンティック規約の恩恵とMackerel APMにおける活用例 / SRE NEXT 2025
mackerelio
3
2k
〜『世界中の家族のこころのインフラ』を目指して”次の10年”へ〜 SREが導いたグローバルサービスの信頼性向上戦略とその舞台裏 / Towards the Next Decade: Enhancing Global Service Reliability
kohbis
3
1.5k
CDK Vibe Coding Fes
tomoki10
1
630
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
820
助けて! XからWaylandに移行しないと新しいGNOMEが使えなくなっちゃう 2025-07-12
nobutomurata
2
200
セキュアな社内Dify運用と外部連携の両立 ~AIによるAPIリスク評価~
zozotech
PRO
0
120
本当にわかりやすいAIエージェント入門
segavvy
1
400
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
100
5.6k
Building Applications with DynamoDB
mza
95
6.5k
Docker and Python
trallard
45
3.5k
Fireside Chat
paigeccino
37
3.5k
Optimising Largest Contentful Paint
csswizardry
37
3.3k
The Language of Interfaces
destraynor
158
25k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.9k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.3k
Automating Front-end Workflow
addyosmani
1370
200k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
Making Projects Easy
brettharned
116
6.3k
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