-
Notifications
You must be signed in to change notification settings - Fork 174
Setting up Vimspector for Unity
Leonid Kapitonov edited this page Jun 1, 2022
·
3 revisions
- vscode-unity-debug, which can be installed with vscode or built from source
- optionally, if debugger won't attach, Mono (make sure that the
mono
executable is in the system's PATH environment variable)
-
Add a new adapter in
.gadgets.json
, which can be found in/path/to/vimspector>/gadgets/<os>
{ "adapters":{ ... "unity-debug":{ "attach":{ "pidSelect":"none" }, "command":[ "/path/to/vscode-unity-debug/UnityDebug" ], "configuration":{ "name":"Unity Editor" }, "name":"unity-debug" } } }
-
Add
.vimspector.json
configuration{ "configurations": { "UnityDebug-Editor": { "adapter": "unity-debug", "configuration": { "request": "attach", "name": "Unity Editor" } } } }
-
Run the debugger!
-
name
: specifies which window to debug. The possible values are:-
unity editor
orUnity Editor
-
osx player
orOSXPlayer
-
windows player
orWindowsPlayer
-
linux player
orLinuxPlayer
-
ios player
oriPhonePlayer
-
android player
orAndroidPlayer
-
ps4 player
orPS4Player
-
xbox one player
orXboxOnePlayer
-
switch player
orSwitchPlayer
-