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
えび
December 06, 2025
64
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
88
CocoaPodsはなぜRuby製か
ebibibibibi
1
210
通勤をゆたかにする技術 ~通勤中に耳でSwiftを学んだら5kg痩せて精神が安定した話~
ebibibibibi
0
240
巨大リポジトリはパーシャルクローンしようね。
ebibibibibi
0
33
丸め誤差発生の仕組みと向き合い方
ebibibibibi
0
160
バブルソートでPHPに入門する
ebibibibibi
0
190
影響範囲調査をする技術
ebibibibibi
0
220
Featured
See All Featured
Docker and Python
trallard
47
4.2k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
57k
Making the Leap to Tech Lead
cromwellryan
135
10k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.2k
Evolving SEO for Evolving Search Engines
ryanjones
0
300
How STYLIGHT went responsive
nonsquared
100
6.3k
We Have a Design System, Now What?
morganepeng
55
8.3k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
330
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Code Review Best Practice
trishagee
74
20k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
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