godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.52k stars 149 forks source link

Debug Editor Toolscripts #500

Closed SavoVuksan closed 10 months ago

SavoVuksan commented 10 months ago

Godot version

4.1

VS Code version

1.83.0

Godot Tools VS Code extension version

1.3.1

System information

Windows 10

Issue description

Is it possible to debug Editor Toolscripts? I am currently working on a 3D Gizmo Plugin and want to debug it using VS Code and the VS-Code Godot Integration. But I don't seem to find any resources on how to debug Plugin Scripts.

Steps to reproduce

Create a Toolscript Try debugging it.

atirut-w commented 10 months ago

You can't even debug tool scripts using the built-in editor, IIRC.

Calinou commented 10 months ago

Debugging tool scripts running in the editor isn't supported. You need to use print() statements instead.

SavoVuksan commented 10 months ago

ahh ok thanks for the info ^^