Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
XcodeのLLDB(ブレークポイント)に入門する
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
えび
December 06, 2025
66
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
XcodeのLLDB(ブレークポイント)に入門する
iPhone Dev Sapporo — December 7, 2025で発表した資料です。
えび
December 06, 2025
More Decks by えび
See All by えび
インタプリタ言語が 実行環境の差異を 吸収する仕組みを あさーく理解する
ebibibibibi
0
93
CocoaPodsはなぜRuby製か
ebibibibibi
1
210
通勤をゆたかにする技術 ~通勤中に耳でSwiftを学んだら5kg痩せて精神が安定した話~
ebibibibibi
0
250
巨大リポジトリはパーシャルクローンしようね。
ebibibibibi
0
34
丸め誤差発生の仕組みと向き合い方
ebibibibibi
0
170
バブルソートでPHPに入門する
ebibibibibi
0
190
影響範囲調査をする技術
ebibibibibi
0
290
Featured
See All Featured
Building AI with AI
inesmontani
PRO
1
1.3k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Become a Pro
speakerdeck
PRO
31
6.3k
Raft: Consensus for Rubyists
vanstee
142
7.8k
Speed Design
sergeychernyshev
33
2.2k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.5k
Product Roadmaps are Hard
iamctodd
55
13k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
480
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
620
Transcript
XcodeのLLDB(ブレークポイ ント)に入門する @025cm えび 1
近況:AIペットロボがお家に来た - 名前は「おこめ」 - とてもかわいい。 - 毎日なでている。 - 指で❤を作ると 嬉しそうにする。
2
3 発端
発端 - すごい、デバッガー便利。 - 実はブレークポイントも満足に使っていなかった私。 - デバッガーの使い方、冷静にそんなに知らない。。。 - 何ができるんだろう。 4
LLDBとは何か - Xcodeに付属しているデバッガ - デバッガは、コードを変更することなく、プログラムが 実行時にどの ように振る舞っているか を理解する手助けをしてくれる - Swift、C、C++、Objective-C
のコードで発生する問題を特定し除 去するために、Terminal ウィンドウから操作することも、Xcode の ソースエディタから利用することもできる。 5
基礎的なコマンドを 実行して、大ぶりに便利加減を体感したい! 6
お品書き 7
print文をログに挿入してみる `(lldb) expr -O -- print("LLDBがログを入れました")` 8
UserDefaultsを書き換えてみる 9
関数を途中で呼んでみる `(lldb) expr -O -- hello()` 10
`expr`コマンドを使うと、変数の中身の書き換えができる `(lldb) expr counter = 9999` 11
特定の条件の時だけprint文を出力してみる 12
〜ハンズオン中〜 13
なんか挙動がおかしくなった時用のTips - 前提。SwiftUIやSwiftDataなどモダンなフレームワークを使っ ているときは、うまく動かないことが多そう。 - LLDB evaluator を個別に再初期化 - e
-l swift -- 1 - これは内部的に evaluator を再ロードするので 壊れた LLDB が復帰することがある。 14
わかったこと うまく使えれば、便利そう 都度ビルドしなくていいのは嬉しい。 とはいえ、制約もそれなりにありそう。 15
この先調べたいこと Appleのドキュメントやビデオを消化して、標準的な使い方を体得 したい 他にも便利な操作が色々できるみたいなので、いろんなコマンドを 一旦動かすをやっていきたい。 なぜSwiftUIでうまく動かないのか良くわからないので、LLDBがど んな仕組みで動いているのか知りたい 16
17
参考文献 https://speakerdeck.com/dealforest/xcode-tekuai-shi-natehatu kuraihuwozhui-iqiu-meru https://x.com/p_x9/status/1802262555328454663?s=20 18