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
1k
C# 大統一理論推進委員会 会員のための Unity Package Manager プロジェクト構成案
monry
PRO
0
1.3k
はじめての C# 大統一理論
monry
PRO
0
650
unity1week でチーム開発を成功させる秘訣
monry
PRO
0
180
Unity で ARゲームを作った話
monry
PRO
1
680
Visual Programming Framework UniFlow のご紹介/Introducing UniFlow
monry
PRO
2
2.7k
UniFlow 完全に理解した / I can develop UniFlow a little.
monry
PRO
0
470
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
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
890
Outline View in SwiftUI
1024jp
1
330
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
520
よくできたテンプレート言語として TypeScript + JSX を利用する試み / Using TypeScript + JSX outside of Web Frontend #TSKaigiKansai
izumin5210
6
1.7k
リアーキテクチャxDDD 1年間の取り組みと進化
hsawaji
1
220
型付き API リクエストを実現するいくつかの手法とその選択 / Typed API Request
euxn23
8
2.2k
Micro Frontends Unmasked Opportunities, Challenges, Alternatives
manfredsteyer
PRO
0
110
CSC509 Lecture 11
javiergs
PRO
0
180
as(型アサーション)を書く前にできること
marokanatani
10
2.7k
ローコードSaaSのUXを向上させるためのTypeScript
taro28
1
630
距離関数を極める! / SESSIONS 2024
gam0022
0
290
Ethereum_.pdf
nekomatu
0
460
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
25
1.8k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Facilitating Awesome Meetings
lara
50
6.1k
Optimizing for Happiness
mojombo
376
70k
Testing 201, or: Great Expectations
jmmastey
38
7.1k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Teambox: Starting and Learning
jrom
133
8.8k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
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