I highly recommend reading the official page about using Visual Studio with Godot first. It may be more up to date than this doc, and has been past review.
If you have any problems or questions, come visit the C# channel in the Godot Discord to chat.
To debug C#/.NET code in Godot:
Server-side Blazor is a stateful application framework. Most of the time, your users will maintain an ongoing connection to the server, and their state will be held in the server's memory in what's known as a "circuit". Examples of state held for a user's circuit include:
- The UI being rendered (i.e., the hierarchy of component instances and their most recent render output)
- The values of any fields and properties in component instances
- Data held in DI service instances that are scoped to the circuit
Occasionally, users may experience a temporary network connection loss, after which Blazor will attempt to reconnect them to their original circuit so they can continue.
This was taken from http://rxwiki.wikidot.com/101samples, because I wanted to be able to read it more comfortable with syntax highlighting.
Here's the unedited original, translated to Github Markdown glory:
/* OpenSimplex Noise in C# | |
* Ported from https://gist.github.com/KdotJPG/b1270127455a94ac5d19 | |
* and heavily refactored to improve performance. */ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
namespace NoiseTest |