Cannot view properties of an object extending Resource type during debugging.
zarstensen opened this issue · comments
Godot version
4.2.stable
VS Code version
1.89.1
Godot Tools VS Code extension version
2.0.0
System information
Windows 10
Issue description
Resource variables only show the resource id instead of all the resources properties, when inspecting variables during debugging.
Expected:
CustomResource extends from Object, properties are displayed as expected.
Actual:
CustomResource extends from Resource, only an "id" property is displayed.
Steps to reproduce
- Create a script which contains properties and extends from Resource.
- Inspect a script instance in the vscode debugger, only the id property is displayed.
Below is the code used to generate the above screenshots:
root_node.gd
extends Node
func _ready() -> void:
var custom_resource: CustomResource = CustomResource.new()
custom_resource.resource_variable = 42
breakpoint
custom_resource.gd
class_name CustomResource
extends Resource
@export
var resource_variable := -9999