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
65
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
89
CocoaPodsはなぜRuby製か
ebibibibibi
1
210
通勤をゆたかにする技術 ~通勤中に耳でSwiftを学んだら5kg痩せて精神が安定した話~
ebibibibibi
0
240
巨大リポジトリはパーシャルクローンしようね。
ebibibibibi
0
34
丸め誤差発生の仕組みと向き合い方
ebibibibibi
0
160
バブルソートでPHPに入門する
ebibibibibi
0
190
影響範囲調査をする技術
ebibibibibi
0
230
Featured
See All Featured
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
560
HDC tutorial
michielstock
2
920
Game over? The fight for quality and originality in the time of robots
wayneb77
1
290
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
200
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
880
Building the Perfect Custom Keyboard
takai
2
890
A better future with KSS
kneath
240
18k
Technical Leadership for Architectural Decision Making
baasie
3
580
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
240
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
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