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
160
swiftcのデバッグ方法
omochimetaru
June 22, 2018
Tweet
Share
More Decks by omochimetaru
See All by omochimetaru
型推論のちょっと深い話
omochi
1
460
Swiftの型推論を学ぼう | Let's Learn About Type Inference in Swift
omochi
4
6.2k
[スクリプト] Swiftの型推論を学ぼう
omochi
2
410
Swift6のprotocol
omochi
6
1.2k
SwiftSyntaxをうまく使おう
omochi
2
340
今から使えるSwiftとC++の新しいinterop手法
omochi
0
430
CSFixとラベルマッチ
omochi
0
400
Swiftのmodifyアクセサとコルーチン
omochi
0
770
Swiftのオーバーロード選択のスコア規則12種類
omochi
3
410
Other Decks in Programming
See All in Programming
未経験でSRE、はじめました! 組織を支える役割と軌跡
curekoshimizu
1
170
PEPCは何を変えようとしていたのか
ken7253
3
290
15分で学ぶDuckDBの可愛い使い方 DuckDBの最近の更新
notrogue
3
760
Swift Testingのモチベを上げたい
stoticdev
2
150
Generating OpenAPI schema from serializers throughout the Rails stack - Kyobashi.rb #5
envek
1
390
楽しく向き合う例外対応
okutsu
0
710
Domain-Driven Design (Tutorial)
hschwentner
13
22k
PHPカンファレンス名古屋2025 タスク分解の試行錯誤〜レビュー負荷を下げるために〜
soichi
1
730
データの整合性を保つ非同期処理アーキテクチャパターン / Async Architecture Patterns
mokuo
55
19k
コミュニティ駆動 AWS CDK ライブラリ「Open Constructs Library」 / community-cdk-library
gotok365
2
250
CloudNativePGを布教したい
nnaka2992
0
120
Ça bouge du côté des animations CSS !
goetter
2
160
Featured
See All Featured
Speed Design
sergeychernyshev
27
810
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
A Philosophy of Restraint
colly
203
16k
Rebuilding a faster, lazier Slack
samanthasiow
80
8.9k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
21
2.5k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
Code Reviewing Like a Champion
maltzj
521
39k
Rails Girls Zürich Keynote
gr2m
94
13k
Site-Speed That Sticks
csswizardry
4
410
Code Review Best Practice
trishagee
67
18k
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