VSCode Unity Debugger - How to set breakpoints, watch expressions, and use the debug console?

preview_player
Показать описание
In this video I show you how to use the VSCode Unity Debugger including how to set code breakpoints? how to use the watch expressions? and how to use the debugger console?

We also look at how you can download this Unity3d Debugger extension through Visual Studio Code just in case you haven't done so already.

You can also watch the previous video, which includes recommended Visual Studio Code extensions for Unity3d in the link below:

Get realtime indie development tips from me in Twitter

Subscribe to my indie development videos & game releases newsletter

Blog about Indie development and startup
Рекомендации по теме
Комментарии
Автор

thank you so much for this video. i just transferred from visual studio to vscode and cant even understand the official document from MS, you are truly lifesavior

xantablkot
Автор

Thanks Dilmer!
In new edition of the debugger extension, they combined the run and debug icon together as I see. I was struggling to find the bug icon..
Actually I am surprised to see that we need to start the debugger as a separate process and start the game in Unity at the same time. Normally in generic programming, you would just run the program(the game) and the code falls onto the breakpoint automatically.

ersinerdem
Автор

This extension has not been updated for over a year, and VSCode UI has changed a lot (v1.44.2). This tutorial is no longer useful.

nati
Автор

I don't have the debugger menu on the left. I'm on windows

boggledeggnoggler
Автор

I do not have half of the features on windows. How to debug on windows ?

marcinziajkowski
Автор

Question: How to debug a Unity->Android application with VSCode. I mean the application is built for Android, how to debug while application is running in a real android device (with USB connected to laptop) ?

clifflin
Автор

thank you for the id, I attach the debugger but it wont stay running Im on linux

kepazino
Автор

Is it possible for VSCode to be attached to a Unity player instance? e.g. Runing a unity app on iOS/Android and debug in VSCode?

clifflin
Автор

Can you take a video of how to do it for the 2020 version

piyealar
Автор

having trouble with hovering while running. I just installed vs code today, restarted the application after installing Unity Debugger extension, but running it won't show me values whenever I hover over the codes. Any suggestions?

ryanyoon
Автор

Hey brother, really cool video, thanks for the help. However i have a problem while trying to use the debugger.


The thing is, in order to debug, i must initialize the debugger first and then start the game. But when i do that and i hit a breakpoint, Unity freezes and doesn't works until i stop the debugger. Any idea how can i possibly fix this?

valentinmariatti
visit shbcf.ru