Skip to content

Cannot view properties of an object extending Resource type during debugging. #660

@zarstensen

Description

@zarstensen

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.
image

Actual:

CustomResource extends from Resource, only an "id" property is displayed.
image

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions