Uploaded August 2019 | Updated November 2026, 3 hours ago
Debuggers are a great way to find out what is actually going on in your code. They allow you to pause, inspect and modify the state of your program at any time. This makes tracking down bugs, understanding the current behavior or identifying how certain things happen significantly easier than inserting things like print statements throughout your code (debuggers also allow you to change the state which isn't possible in simple logs or outputs.
In this video we're going to explore how you can debug Unity with VS Code. This will allow you to connect a debugger to Unity, set breakpoints (normal, conditional, or periodic breakpoints), setup variable watches to keep an eye on specific values and explore properties of the current stack like the call-stack and currently scoped variable values.
The Unity Debugger is open source and on GitHub here, check it out!: github.com/Unity-Technologies/vscode-unity-debug
The Debug Symbol from the thumbnail is part of the Modern UI Icons set by Austin Andrews: modernuiicons.com
Join the World of Zero Discord Server: discord.gg/hU5Kq2u
Debuggers are a great way to find out what is actually going on in your code. They allow you to pause, inspect and modify the state of your program at any time. This makes tracking down bugs, understanding the current behavior or identifying how certain things happen significantly easier than inserting things like print statements throughout your code (debuggers also allow you to change the state which isn't possible in simple logs or outputs.
In this video we're going to explore how you can debug Unity with VS Code. This will allow you to connect a debugger to Unity, set breakpoints (normal, conditional, or periodic breakpoints), setup variable watches to keep an eye on specific values and explore properties of the current stack like the call-stack and currently scoped variable values.
The Unity Debugger is open source and on GitHub here, check it out!: github.com/Unity-Technologies/vscode-unity-debug
The Debug Symbol from the thumbnail is part of the Modern UI Icons set by Austin Andrews: modernuiicons.com
Join the World of Zero Discord Server: discord.gg/hU5Kq2u



The end result of this is will allow us to tweak the radius, location, inside and outside color of the circle we draw in world space. This allows us to do a lot more than we could previously even though we havent really added that many new features. We also migrate to use an unlit shader instead of using the default PBR shader. This is new compared to our original surface shader and is closer to the end result were trying to build. An unlit shader ignores lighting in the scene including things like global illumination and allows us to get a single consistent color across the entire surface our shaders material is applied to.
The World of Zero Discord Server: https://discord.gg/hU5Kq2u Using Properties and Steps in Part 2 of our Ripple in Shader Graph](https://i.ytimg.com/vi/tL3GbBAqF3E/mqdefault.jpg)





![Exploring Top-Level Programs in C# 9
Top-Level Programs is a new feature being introduced in C# 9.0 that significantly simplifies certain C# programs and allows you to remove almost all of the boilerplate code from them. This pattern allows you to call functions at the top-level of your C# program meaning that you do not need a class or function definition in order to call those functions. Instead C# automatically generates that code for you when your code is compiled.
The simplest top-level program is just one line:
```csharp
System.Console.WriteLine(Hello, World of Zero!);
```
There are a few special features included with top-level programs that help you to fully use some of the features like accepting command line arguments or async functions.
### `args` variable
C#s top-level programs include a magic `args` variable which contains a `string[]` of command-line arguments provided. Here is a working example script that accepts a command line argument to greet you by name.
```csharp
using System;
// If there is 1 argument greet that argument by name
if (args.Length 1)
{
Console.WriteLine($Hello, {args[0]}!);
} else { // Otherwise greet a generic Internet 🤖
Console.WriteLine(Hello Internet!);
}
```
Use `dotnet run World of Zero` or similar to run this code and be greeted with Hello, World of Zero!
### `async` and `await` support
You may take advantage of async functions inside of a top-level program. This allows for things like async file operations, web requests etc to be made without having to wrap them in a separate async function.
For example this task will print two numbers with a short pause between them.
```csharp
using System;
using System.Threading.Tasks;
Console.WriteLine(One);
await Task.Delay(1000);
Console.WriteLine(Two);
```
***
More info about some of the new features in C# 9.0 and how to use them is available here: https://devblogs.microsoft.com/dotnet/welcome-to-c-9-0/
Join the World of Zero Discord Server: https://discord.gg/hU5Kq2u Exploring Top-Level Programs in C# 9](https://i.ytimg.com/vi/uxxROAx6MMU/mqdefault.jpg)
![Installing Nyancat using the .NET CLI
The .NET CLI includes the ability to install additional developer tools like powershell. This is a powerful feature that enables you to add tools to your developer environment without leaving your terminal. In this video well take full advantage of the feature by installing an animated nyancat tool. My productivity will never been the same!
To learn more run `dotnet tool help`.
You may use `dotnet tool install [PACKAGE_NAME]` and dotnet tool uninstall `[PACKAGE_NAME]` to install and uninstall packages.
The tool uses the same Nuget package manager that provides your dotnet libraries and chocolatey packages.
You can explore the available tools on [ToolGet](https://www.toolget.net/).
More information about managing dotnet tools: https://docs.microsoft.com/en-us/dotnet/core/tools/global-tools
Join the World of Zero Discord Server: https://discord.gg/hU5Kq2u Installing Nyancat using the .NET CLI](https://i.ytimg.com/vi/uzaFeSxM32k/mqdefault.jpg)
