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
swiftcのデバッグ方法
Search
omochimetaru
June 22, 2018
Programming
1
150
swiftcのデバッグ方法
omochimetaru
June 22, 2018
Tweet
Share
More Decks by omochimetaru
See All by omochimetaru
Swiftの型推論を学ぼう | Let's Learn About Type Inference in Swift
omochi
3
4.2k
[スクリプト] Swiftの型推論を学ぼう
omochi
1
210
Swift6のprotocol
omochi
4
920
SwiftSyntaxをうまく使おう
omochi
2
250
今から使えるSwiftとC++の新しいinterop手法
omochi
0
330
CSFixとラベルマッチ
omochi
0
320
Swiftのmodifyアクセサとコルーチン
omochi
0
600
Swiftのオーバーロード選択のスコア規則12種類
omochi
3
280
SILを読もう
omochi
2
640
Other Decks in Programming
See All in Programming
freeeのエンジニアが 就活で出そうな コーディングテストを 解説してみる
freee
1
170
CREってこういうこと? 体験入社 - 提案資料 - / what-is-cre-trial-employment
shinden
1
620
Implementing Design Systems in Swift
seyfoyun
2
530
AppRouter Panel Talk
yosuke_furukawa
PRO
1
530
WebGLで始める コンピュータグラフィックス入門
heller77
0
390
チーム立ち上げにAWSを活用したらClaudeさんに褒められた話
mkdev10
3
230
RubyGems on ruby.wasm
kateinoigakukun
0
130
FoodGram
iseruuuuu
0
230
2024 コーディング研修
ckazu
2
660
教えて!スクラムコーチ品質とスピードのバランスはどうすりゃいいの?
pinboro
0
140
Direct Style Effect Systems The Print[A] ExampleA Comprehension Aid
philipschwarz
PRO
0
410
Good first issues of TypeProf
mame
4
610
Featured
See All Featured
Faster Mobile Websites
deanohume
300
30k
The Power of CSS Pseudo Elements
geoffreycrofte
62
5k
How to Ace a Technical Interview
jacobian
273
22k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
67
14k
Statistics for Hackers
jakevdp
790
220k
Stop Working from a Prison Cell
hatefulcrawdad
266
19k
What's new in Ruby 2.0
geeforr
338
31k
The Illustrated Children's Guide to Kubernetes
chrisshort
32
47k
Building a Modern Day E-commerce SEO Strategy
aleyda
22
6.5k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
9
1.3k
Adopting Sorbet at Scale
ufuk
69
8.6k
Optimizing for Happiness
mojombo
370
69k
Transcript
swiftcͷσόοάํ๏ Θ͍Θ͍swiftc #3, 2018/06/22 omochimetaru @ 1
͓͞Β͍ SwiftίϯύΠϥ։ൃ༻ͷڥߏங https://qiita.com/omochimetaru/items/ fd485185bcd07c21b49f SwiftίϯύΠϥ։ൃڥߏங https://qiita.com/rintaro/items/2047a9b88d9249459d9a ͳͲɺ͍Ζ͍Ζ 2
͓͞Β͍࣮ԋ $ utils/build-script --debug --xcode \ --skip-build-benchmarks XcodeΛ։͍ͯswiftλʔήοτΛ࡞ɺ ҾΛࢦఆͯ͠σόοά࣮ߦɻ 3
৽ख๏ Wait for executable for launched ίπ: PATHΛ௨͢ 4
࣮ԋ main ͔Β main llvm::SmallVectorΑ͘Θ͔ΒΜ 5
LLDBεΫϦϓτ σόοΨΛεΫϦϓτͰ֦ு swift-source/llvm/utils/lldbDataFormatters.py 6
࣮ԋ $ command script import <path> 7
lldbinit lldbίϚϯυͷࣗಈಡΈࠐΈ 8
࣮ԋ $ vim ~/.lldbinit 9
lldb print expression 10
·ͱΊ • Wait for executable for launched • lldbDataFormatters.py •
lldbinit • p, e 11
͓ΘΓ 12