-
Notifications
You must be signed in to change notification settings - Fork 177
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
monoexecutable 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.jsonconfiguration{ "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 editororUnity Editor -
osx playerorOSXPlayer -
windows playerorWindowsPlayer -
linux playerorLinuxPlayer -
ios playeroriPhonePlayer -
android playerorAndroidPlayer -
ps4 playerorPS4Player -
xbox one playerorXboxOnePlayer -
switch playerorSwitchPlayer
-