Setup Godot 4.2 C# In Windows With Visual Studio Code .NET 8 | 2024 | Debugging | Debug

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys and welcome to this tutorial today I'm going to show you how to install the latest version of the go. Eden which is 4.2 we're going to use wishes Studio code as our code editor and we're going to use net 8 as our compiler so start by searching for net 8 in your favorite search engine then click here on download then download the x64 version for Windows here and this is automatically going to start to download for us and run this guy then click on install and click on yes this will take a while so I'll be fast forward this for you guys once the installation is complete click on close then go to code. wish studio.com and download the latest table bill for Windows and this is automatically going to start the download for us it's going to run the file here then accept the agreement and click on next click on next and click on install once it's completed keep this check boox shck and click on finish once whiches to the code starts up go over here to extensions then search for C and they have Chang the icon so it's now the white text on this blue diamond so I click on this guy and click on install to install the C Dev kid is optional you don't need it but I'm going to install it anyways all right now let's go here to go.org and click here on download latest click here on go. engine.net and this is automatically going to start to download for us and once the C file is downloaded we can open this guy in the file manager and to bring up my desktop in the background I have the file in my downloads folder so I'm going to double click this guy going to right click and click on copy and I'm going to go to my C drive to my go do folder and I'm going to paste this guy in and this will unip the folder for us and go into this folder I'm going to take the ex executable and hold down the old key just going to release the left Mouse button and this will create a link on my desktop like so and we can now start the go. engine when the go. engine starts up click on cancel and we click here on new and we just going to call this uh test project I'm going to create a folder and click here on create an edit here we want to go into editor and click on editor settings then scroll all the way to the bottom here you're going to find net then click on editor and make sure this is set to wishes Studio code here in the dropdown then click on close next we're going to create a main scene so click here on 2D scene just going to type in Main and go here to scene save scene click on create folder I'm going to call this scenes and I'm going to save this as main.ts in here like so next right click the main node click on that child node going to find a Sprite 2D this guy here and click on create I'm going to drag in the icon.svg file on this guy we can go to transform let's set this guy to something like 350 so it's going to be down in the middle and for the X position set this to 100 like so so we have a starting position for this guy next right click the main node click on attach script select cop script in the dropdown and click on here and this will open up the script for us and in here I'm going to add some simple code we're just going to create a vector 2 for some speed and we're going to have a reference to a Sprite and we're going to get the Sprite Which is the Sprite 2D we created inside the go. engine this guy right here so we're going to grab that node and when the process method is running we're just going to move the Sprite position with the speed we have multiplied with the Delta and once the Sprite goes above 1,000 pixels we're going to move the Sprite back to the beginning of the window now we're going to go here to run a debug I'm going to click here on create ajacent launch file and click here on C and what you want to do now is to find this little add configuration button down here so click on this guy then first add the remote debugging attached to net process here and secondly click this guy again and go and add the launch executable file next we can remove the pipe transport here it's not needed it's only used for remote the buug into another machine so we can remove those lines and here is where we want to put the path to our go do executable bring up our file explorer going to go to go Dot and the 4.2 folder click up here then do a control copy to get the path and inside of the program path here we're going to add this guy next change the back slashes to for for slashes add a slash at the end go back to the go. engine folder right click on the file here click on rename press contrl C to copy the name press escape to cancel go back here and add the executable name to the end and add. exe here like so save the file next we're going to go back here to the go engine because we have to make a build for this guy going to click here on play and it's going to say no main scene has ever been defined select one so going to select the main scene here this is going to build the project and create the project files and everything for us this guy will be right and when he reaches 1,000 pixels it's going to jump back to the beginning and close this guy down next go back to the visual studio code editor and now we're going to click here on play for the run and debug and it's going to say could not find the task build so click on configure task then click here on create task Json file from a template then click here on net core and if you now click on play this is going to launch our application so if you go to our main script here and we going to add a debug point in here the debug point is going to be hit it's going to bring this guy out so we can see what's going on if we press here on continue see it's moving and it's hitting our break point and we can go F10 and step through the code and so forth let's click on stop here we can do this the other way around we can first start the application here in the go. editor and click here on the debug settings and we can choose net Cor attach and we click on play then search for go do in here and if you H this guy down here you can see it's going to say a remote debug and this is the guy we want to attach to and we have now attached to the process here that is running so we can detach here all right guys this is how we set up the latest version of the go to Indian 4.2 with net 8 and we wish Studio code as your editor and also how you can start debugging your product thank you guys for watching please like subscribe hit the notification Bell and see you in the next video bye for now
Info
Channel: TheSolarString
Views: 5,416
Rating: undefined out of 5
Keywords: Debug, C#, .NET, .NET 7, Visual Studio Code, vscode, Windows, Linux, Setup, Latest, quickest, fastest, greatest, Install, Fix, Resolve, Guide, Tutorial, Easy, Step by step, 2023, Mono, Debugging, how to, debug Godot 4, how to debug Godot 4 in vscode, howto, intellisence, with, in, godot 4 ubuntu .net 7 setup, godot 4 vscode debugging, how to debug, debugging Godot 4, debug .Net 6, .net 6, debug .net 7, with vscode, in vscode, 2022, Godot 4.2, Godot 4, Beginner, Get Started, help, omnisharp, guide, friendly
Id: -L0MkEWO9hQ
Channel Id: undefined
Length: 7min 15sec (435 seconds)
Published: Mon Dec 04 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.