How do I debug using vscode ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Pheonyxior

I want to debug my GDscript in visual studio code ( having the game pause at my breakpoints so that I can read the values inside my VSCode ), but the breakpoints I put don’t do anything and doing Run and Debug gives me an error:

"Failed to launch Godot instance: Error: Command failed: “godot” --path “C:\projets GDC\Godot\Dodge_c” --remote-debug --breakpoints res://Main_scene/enemy_scene/,res://Main_scene/,res://Main_scene/,res://Main_scene/,res://Main_scene/,res://Main_scene/,res://Main_scene/
‘“godot”’ n�fest pas reconnu en tant que commande interne
ou externe, un programme executable ou un fichier de commandes.
(godot isn’t recognized as an intern or extern command, an execuatble program or a command file.)

I don’t think the problem stems from my code but here’s a sample, I put B_ at the start of lines where there’s a breakpoint.

Any hindsight you’re willing to share would be greatly appreciated :).

extends Node
export(PackedScene) var enemy_scene
var score

# Declare member variables here. Examples:
# var a = 2
# var b = "text"

# Called when the node enters the scene tree for the first time.
func _ready():

# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
#	pass

func game_over():

func new_game():
	B_get_tree().call_group("mobs", "queue_free")
	B_score = 0
	$HUD.show_message("Get Ready")
:bust_in_silhouette: Reply From: Pheonyxior

Alright I found the problem ( I think ) I followed this post’s instructions : Reddit - Dive into anything

and while I had no problem in my ports settings, I didn’t point the editor path in the vscode godot-tools settings ( I didn’t even know vscode extensions had settings lol ) and when I did, it worked, so it should be the reason.