Skip to content

Conversation

@MichaelXt
Copy link
Contributor

@MichaelXt MichaelXt commented Nov 10, 2025

Debugger QOL improvements and fixes

  • Class properties renamed to match expected behavior: resolves Some debug variable names are "conventionally" incorrect #437
    • members now do not have a prefix in object instances: Member/Foo -> Foo
    • Inherited properties now do have a prefix: Parent1/Foo, ParentOfParent1/Boo
    • Categories are properly treated and not displayed as property
  • __repr__ support
    • If the class contains __repr__ member, value of it will be used as a display name for it's instances representations. That works for Dictionary keys too.

Smaller changes and fixes:

  • Arrays to display actual values for more complex types in preview (Vectors/Rects/etc)
  • Strings are 'quoted' (similar to other DAPs)
  • Rect2i fix (parse as int, not float). fixes Rect2i shows variable wrong #943
  • StringName better representation in values and dict keys: &'StringName'
  • tasks discoverabilty: Added tasks for test and package to tasks.json.

The new class member names

image

The list/dict representation experience

Godot experience:
image
New vscode experience:
image

* Property rename to match expected behavior:
** members now do not have a prefix in object instances: Member/Foo -> Foo
** Inherited properties now do have a prefix: Parent1/Foo, ParentOfParent1/Boo
** Categories are properly treated and not displayed as property
* __repr__ support
** If the class contains __repr__ member, value of it will be used as a display name for it's instances representations. That works for Dictionary keys too.

Smaller changes and fixes:
* Arrays to display actual values for more complex types in preview (Vectors/Rects/etc)
* Strings are 'quoted' (similar to other DAPs)
* Rect2i fix (parse as int, not float)
* StrnigName better representation in values and dict keys: &'StringName'
* tasks discoverabilty: Added tasks for test and package to tasks.json.
Test project: update test proj
@MichaelXt
Copy link
Contributor Author

@Calinou, does this change look good to you? What is the path forward with the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rect2i shows variable wrong Some debug variable names are "conventionally" incorrect

2 participants