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
Managed Debugger の使い方をご紹介/How to use Managed De...
Search
Tetsuya Mori
PRO
November 28, 2018
Programming
0
1.3k
Managed Debugger の使い方をご紹介/How to use Managed Debugger on Unity
2018/11/28 (Wed) に開催された Gotanda.unity #9 での登壇資料になります。
Tetsuya Mori
PRO
November 28, 2018
Tweet
Share
More Decks by Tetsuya Mori
See All by Tetsuya Mori
ビルドシステムを C# 大統一したお話
monry
PRO
2
1.1k
C# 大統一理論推進委員会 会員のための Unity Package Manager プロジェクト構成案
monry
PRO
0
1.3k
はじめての C# 大統一理論
monry
PRO
0
660
unity1week でチーム開発を成功させる秘訣
monry
PRO
0
190
Unity で ARゲームを作った話
monry
PRO
1
700
Visual Programming Framework UniFlow のご紹介/Introducing UniFlow
monry
PRO
2
2.8k
UniFlow 完全に理解した / I can develop UniFlow a little.
monry
PRO
0
480
Democratized Unity Package Manager
monry
PRO
1
2.6k
使ってみよう! Unity RemoteSettings/Let's use Unity RemoteSettings
monry
PRO
1
1k
Other Decks in Programming
See All in Programming
fs2-io を試してたらバグを見つけて直した話
chencmd
0
230
たのしいparse.y
ydah
3
120
nekko cloudにおけるProxmox VE利用事例
irumaru
3
420
コンテナをたくさん詰め込んだシステムとランタイムの変化
makihiro
1
120
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
700
プロダクトの品質に コミットする / Commit to Product Quality
pekepek
2
770
From Translations to Multi Dimension Entities
alexanderschranz
2
130
テスト自動化失敗から再挑戦しチームにオーナーシップを委譲した話/STAC2024 macho
ma_cho29
1
1.3k
ゆるやかにgolangci-lintのルールを強くする / Kyoto.go #56
utgwkk
1
370
テストコード文化を0から作り、変化し続けた組織
kazatohiei
2
1.5k
rails statsで大解剖 🔍 “B/43流” のRailsの育て方を歴史とともに振り返ります
shoheimitani
2
930
talk-with-local-llm-with-web-streams-api
kbaba1001
0
180
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
65
11k
Music & Morning Musume
bryan
46
6.2k
Code Reviewing Like a Champion
maltzj
520
39k
BBQ
matthewcrist
85
9.4k
Done Done
chrislema
181
16k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.3k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
How To Stay Up To Date on Web Technology
chriscoyier
789
250k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Designing for humans not robots
tammielis
250
25k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.1k
Transcript
גࣜձࣾΩοζελʔ CTO ɹ࠸ Managed Debugger ͷ͍ํΛ͝հ ·ͩ Debug.Log() ͬͯΔͷʂʁ Unity
2018.2 ࣌ͷϞμϯͳσόοάख๏ίϨͩʂ 2018/11/28 Gotanda.unity #9 at Unity Technologies Japan
͜ΜΜʂ 2
•LT ֓ཁ •ࣗݾհ •σόοάख๏͋Ε͜Ε •ϥΠϒσϞ •σόοΨͷ͍ํ •·ͱΊ 3 ΞδΣϯμ
•LT ֓ཁ •ࣗݾհ •σόοάख๏͋Ε͜Ε •ϥΠϒσϞ •σόοΨͷ͍ํ •·ͱΊ 4 ΞδΣϯμ ΠϚίί
ࠓͷ͓ͷ֓ཁ 5
•Unity σόοάશʹཧղ͍ͨ͠ਓ •UniRx ͱ͔ͰϥϜμࣜΛ͏ͱ ʮελοΫτϨʔε͕ಡΈͮΒ͍…ʂʯ ͬͯࢥ͍ͬͯΔਓ •iOS ͱ͔ Android ͱ͔ͷ
࣮ػσόοάͰࢮʹͦ͏ʹͳͬͯΔਓ 6 ࠓͷରऀ ֓ཁ
•֤σόοάख๏ͷ͍Ͳ͜Ζ •JetBrains Rider Λ༻͍ͨ Managed Debugger ͷ͍ํ 7 ࠓ͢ίτ ֓ཁ
•JetBrains Rider Ҏ֎ͷ IDE ʹ ԙ͚ΔσόοΨͷ͍ํ •ίϯγϡʔϚήʔϜػʹԙ͚Δ σόοΨͷ͍ํ 8 ࠓ͞ͳ͍ίτ
֓ཁ
•Unity 2018.3.0b11 ʹͯಈ࡞֬ೝ͓ͯ͠Γ·͢ •JetBrains Rider 2018.3 EAP 7 ʹͯಈ࡞֬ೝ͓ͯ͠Γ·͢ •IL2CPP
Backend ͳ iOS ϏϧυΛ iOS 12.1 Ͱಈ࡞֬ೝ͓ͯ͠Γ·͢ 9 ։ൃڥ ֓ཁ
•LT ֓ཁ •ࣗݾհ •σόοάख๏͋Ε͜Ε •ϥΠϒσϞ •σόοΨͷ͍ํ •·ͱΊ 10 ΞδΣϯμ ΠϚίί
ࣗݾհ 11
12 Who am I ? ࣗݾհ @monry a.k.a. ΜΓ͌ઌੜ
13 Who am I ? ࣗݾհ •2019-2020 Microsoft MVP for
Developer Technologies •ࣗশ Unity ΤϰΝϯδΣϦετ
14 Job ࣗݾհ ࢠͲ͚ΞϓϦ࡞ͬͯΔձࣾͰ $50ͬͯ·͢
15 Recruit ࣗݾհ •Unity ͰͷΞχϝʔγϣϯ࡞Γ γʔϯ࡞ΓͳͲΛߦ͏ Unity ΞʔςΟετ •Πϥετ੍࡞ը໘σβΠϯΛߦ͏ σβΠφɾΠϥετϨʔλ
16 PR ࣗݾհ ϚϯΨͰΘ͔Δ Unity ධ࿈ࡌதʂ
17 PR ࣗݾհ #ͷϥδ ύʔιφϦςΟͬͯ·͢ʂ ήετืूதʂ
ຊ 18
•LT ֓ཁ •ࣗݾհ •σόοάख๏͋Ε͜Ε •ϥΠϒσϞ •σόοΨͷ͍ํ •·ͱΊ 19 ΞδΣϯμ ΠϚίί
σόοάख๏͋Ε͜Ε 20
21 σόοάख๏ σόοάख๏ ࢹ צ ϩά σόοΨ σόοΨ
•Editor Ͱͷ࣮தͳΒɺ·͊ΞϦ •ͨͩ͠ɺϩάΛՃɾมߋ͢Δʹ ίϯύΠϧ͕ΔͷͰ ڊେϓϩδΣΫτͩͱγϯυΠ •࣮ػͰͷσόοάϏϧυ͕ ඞཁʹͳΔͷͰඇݱ࣮త 22 Debug.Log() ͡Όμϝʁ
σόοάख๏
•σόοάΛิॿ͢ΔιϑτΣΞ •Breakpoint Λுͬͯϓϩηε͕ ֘ߦʹࢸͬͨ࣌ʹҰ࣌ఀࢭ •Ұ࣌ఀࢭ࣌ͷมͷঢ়ଶΛղੳ •ͦ͜ʹࢸΔελοΫτϨʔεΛදࣔ 23 σόοΨ is Կʁ
σόοάख๏
•Visual Studio JetBrains Rider ͳͲͷ IDE ʹࡌ͞Ε͍ͯΔ •Visual Studio
Code Ͱ֦ுػೳͱͯ͠ ΠϯετʔϧՄೳʢΒ͍͠ʣ •ίϯςΩετʹΑͬͯσόοάΛઐͱ͢Δ δϣϒͷਓΛࢦ͢ίτ͋Δ 24 σόοΨ is Կʁ σόοάख๏
•LT ֓ཁ •ࣗݾհ •σόοάख๏͋Ε͜Ε •ϥΠϒσϞ •σόοΨͷ͍ํ •·ͱΊ 25 ΞδΣϯμ ΠϚίί
Live Demo 26
•LT ֓ཁ •ࣗݾհ •σόοάख๏͋Ε͜Ε •ϥΠϒσϞ •σόοΨͷ͍ํ •·ͱΊ 27 ΞδΣϯμ ΠϚίί
σόοΨͷ͍ํ 28
ηΫγϣϯλΠτϧ •Ϗϧυ࣌ͷΦϓγϣϯ •Development Build •Script Debugging •Wait For Managed Debugger
Λ͚Δͱɺىಈޙʹ μΠΞϩά͕ग़ͯ σόοΨଓΛͯΔ 29 σόοΨͷ͍ํ σόοΨͷ͍ํ Unity 2018.2 ͔Β IL2CPP Backend Ͱ Script Debugging Մೳʹ
ηΫγϣϯλΠτϧ •Wait For Managed Debugger Λ͚Δͱىಈ࣌ʹ μΠΞϩά͕ग़Δ •Ok ϘλϯΛԡ͢·Ͱ ϓϩηε͕Ұ࣌ఀࢭͯ͠
͘ΕΔͷͰɺͦͷؒʹ σόοΨΛଓ͢Δ 30 σόοΨͷ͍ํ σόοΨͷ͍ํ
ηΫγϣϯλΠτϧ •Debugger ଓ •ಉҰ LAN ʹډΔ ϓϩηεΛ୳ͯ͘͠ΕΔ •Editor ࣮ػର 31
σόοΨͷ͍ํ σόοΨͷ͍ํ
ηΫγϣϯλΠτϧ •Breakpoint ΛுΔ •Breakpoint ʹରͯ͠ ݅ࣜΛઃఆՄೳ ʢ࣮ػͩͱո͍͠ʁʣ •εΫγϣ this ͕
null ͷ߹ʹࢭΊ͍ͯΔ 32 σόοΨͷ͍ํ σόοΨͷ͍ํ Unity ͋Δ͋Δ
ηΫγϣϯλΠτϧ •Exception Λ Watch •Exception ൃੜ࣌Ͱ ࢭΊͯ͘ΕΔ •ӈԼͷεΫγϣͷ߹ transform ࢀর࣌Ͱ
NullReferenceException ͕ ൃੜ͍ͯ͠Δ 33 σόοΨͷ͍ํ σόοΨͷ͍ํ
•LT ֓ཁ •ࣗݾհ •σόοάख๏͋Ε͜Ε •ϥΠϒσϞ •σόοΨͷ͍ํ •·ͱΊ 34 ΞδΣϯμ ΠϚίί
·ͱΊ 35
•σόοΨΛ͑ಡΈਏ͍Τϥʔ ղੳ͘͢͠ͳΔʂ •Xcode ܨ͕ͳ࣮ͯ͘ػσόοάՄೳʂ •Managed Code ͰσόοάͰ͖Δʂ •Visual Studio ͳΓ
Rider ͳΓ ศརͳ IDE Λੵۃతʹ͍ͬͯ͜͏ʂ 36 ·ͱΊ ·ͱΊ Unity 2018.2 ͔Β
•ຊͬͨσϞϓϩδΣΫτ • https://github.com/monry/debugger_demo 37 Appendix
Thank you for your attention!! 38