Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typed arrays with custom types don't show up in the debugger's variable stack #90467

Closed
mieldepoche opened this issue Apr 10, 2024 · 1 comment · Fixed by #94379
Closed

Typed arrays with custom types don't show up in the debugger's variable stack #90467

mieldepoche opened this issue Apr 10, 2024 · 1 comment · Fixed by #94379

Comments

@mieldepoche
Copy link
Contributor

mieldepoche commented Apr 10, 2024

Tested versions

v4.3.dev.custom_build [a7b8602]

System information

linux

Issue description

var my_array: Array[MyCustomClass] = []
breakpoint

at the breakpoint, my_array doesn't show up as a local variable in the debugger.

Steps to reproduce

run the above code and check the debugger

Minimal reproduction project (MRP)

extends Node

class MyCustomClass:
	pass

func _ready() -> void:
	var custom: Array[MyCustomClass]
	breakpoint
@mieldepoche mieldepoche changed the title Typed arrays don't show up in the debugger's variable stack Typed arrays with custom types sometimes don't show up in the debugger's variable stack Apr 10, 2024
@mieldepoche mieldepoche changed the title Typed arrays with custom types sometimes don't show up in the debugger's variable stack Typed arrays with custom types don't show up in the debugger's variable stack Apr 10, 2024
@quirkylemon
Copy link
Contributor

quirkylemon commented Apr 21, 2024

would it be ok to add a argument to 'encode_variant' that says if it is debug or not? then use my original solution if it is being used for debugging. would that still cause problems?

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