Hi there,
First of all, thanks for useful tool. It’s help me very much.
When I use VSCode to debug my game, VSCode detect Unity and Unity Hub like a Editor
This is error: Multiple targets with name ‘Unity Editor’ running. Unable to connect.
if any others have the same problem you can fix it with changing you launch.json file in the .vscode folder so instead of the first part of the configuration begin
I’m having this problem as well, it seems that (on Mac at least) there are constantly 2 Unity processes running, I can force quit the 2nd one without any issues but every time I press Play in the editor the 2nd unity process restarts.
Hi reporting back in: I’m still having this issue in unity 2022.1. Is no one at unity trying to use the debugger or why is this still not resolved? I would assume not being able to easily debug your code should be a high priority issue?
“Visual Studio Code can be a great companion to Unity for editing C# files. All of the C# features are supported and more. In the screen below, you can see code colorization, bracket matching, IntelliSense, CodeLens and that’s just the start.”
None of that feels super deprecated to me.
I’m confused by this whole thing. I only started getting this error after updating to the latest LTS (Mac User).
Editing the .json to “Unity Editor (Unity)” did nothing for me, but opening the Command Palette in VS Code (Ctrl+shift+P) then typing “Unity Attach Debugger” got me a list of options where I could select the correct instance.
(After this, you should see encouraging console messages like
UnityDebug: Attached to Unity process 'Unity Editor (Unity)' (3324)
Resolved pending breakpoint at 'e:\Unity\VR2020Test\Myproject\Assets\...
) and then you can start your Unity project and hit breakpoints and stuff.