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.4k
はじめての C# 大統一理論
monry
PRO
0
680
unity1week でチーム開発を成功させる秘訣
monry
PRO
0
200
Unity で ARゲームを作った話
monry
PRO
1
720
Visual Programming Framework UniFlow のご紹介/Introducing UniFlow
monry
PRO
2
2.8k
UniFlow 完全に理解した / I can develop UniFlow a little.
monry
PRO
0
490
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
Package Traits
ikesyo
1
210
見えないメモリを観測する: PHP 8.4 `pg_result_memory_size()` とSQL結果のメモリ管理
kentaroutakeda
0
940
React 19でお手軽にCSS-in-JSを自作する
yukukotani
5
560
混沌とした例外処理とエラー監視に秩序をもたらす
morihirok
13
2.3k
Асинхронность неизбежна: как мы проектировали сервис уведомлений
lamodatech
0
1.3k
DMMオンラインサロンアプリのSwift化
hayatan
0
190
[JAWS-UG横浜 #80] うわっ…今年のServerless アップデート、少なすぎ…?
maroon1st
0
100
php-conference-japan-2024
tasuku43
0
430
PHPとAPI Platformで作る本格的なWeb APIアプリケーション(入門編) / phpcon 2024 Intro to API Platform
ttskch
0
390
Оптимизируем производительность блока Казначейство
lamodatech
0
950
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
1.3k
カンファレンス動画鑑賞会のススメ / Osaka.swift #1
hironytic
0
170
Featured
See All Featured
Embracing the Ebb and Flow
colly
84
4.5k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
VelocityConf: Rendering Performance Case Studies
addyosmani
327
24k
A better future with KSS
kneath
238
17k
The Power of CSS Pseudo Elements
geoffreycrofte
74
5.4k
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
960
Rails Girls Zürich Keynote
gr2m
94
13k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
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