๐ฆ Unity VScode Debugging
visual studio์ ๋ฌ๋ฆฌ ๋๋ฒ๊น ์ ์ํด์๋ extention๊ณผ ์ค์ ์ ํด์ฃผ์ด์ผ ํ๋ค.
๐ง Settings
- C#, Debugger for Unity, Unity Tools 3๊ฐ์ง๋ฅผ ๋ค์ด๋ฐ๋๋ค.
- ์ผ์ชฝ์ ๋ฒ๋ ๋ชจ์ ์์ด์ฝ์ ํด๋ฆญํ๋ค.
- create a launch.json file ํด๋ฆญ
- Unity Debugger ํด๋ฆญ
๋๋ณด๊ธฐ
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Unity Editor",
"type": "unity",
"path": "์์น/Library/EditorInstance.json",
"request": "launch"
},
{
"name": "Windows Player",
"type": "unity",
"request": "launch"
},
{
"name": "OSX Player",
"type": "unity",
"request": "launch"
},
{
"name": "Linux Player",
"type": "unity",
"request": "launch"
},
{
"name": "iOS Player",
"type": "unity",
"request": "launch"
},
{
"name": "Android Player",
"type": "unity",
"request": "launch"
},
{
"name": "Xbox One Player",
"type": "unity",
"request": "launch"
},
{
"name": "PS4 Player",
"type": "unity",
"request": "launch"
},
{
"name": "SwitchPlayer",
"type": "unity",
"request": "launch"
}
]
}
- Unity Debbuger๊ฐ ๋จ์ง ์๋ ๊ฒฝ์ฐ๋ ์๋ค.
- ๊ทธ๋ด ๋๋ .NET Core๋ฅผ ์ ํํ ๋ค .vscode ์๋์ ์๊ธด launch.json ํ์ผ์ ์ ์ฝ๋๋ฅผ ๋ถ์ฌ๋ฃ๋๋ค.
- ์ํ๋ ์์น์ break point๋ฅผ ๊ฑธ๊ณ
- ํ๋ ์ด ๋ฒํผ ํด๋ฆญํ ํ ์ ๋ํฐ์์๋ ํ๋ ์ด๋ฅผ ํ๋ฉด break point์์ ๋ฉ์ถ๋ค.
'Unity > Else' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์ ๋ํฐ ๋ฒํผ ์์ ๋ฆฌ์ (0) | 2022.06.30 |
---|---|
๋ ์ด์์ ์ฌ์ ๋ ฌ (0) | 2022.05.27 |
Animation Rigging (0) | 2022.04.01 |
Unity Asset Bundle (0) | 2021.12.19 |
AudioMixer (0) | 2021.10.31 |