Skip to content

[3.x] Debugger doesn't show stack variables in specific conditions #79687

@boruok

Description

@boruok

Godot version

v3.5.2.stable.official [170ba33]

System information

Ubuntu 22.04.2 LTS, GLES2

Issue description

debugger doesn't show stack variables with autoload and resource with overridden _get method in the same scene:

# game.gd
extends Node


export var resource : Resource


func _ready() -> void:
	var foo := 2023
	var bar := "hello world"
# resource.gd
extends Resource


var _data := {}


func _get(property: String):  # Variant
	return _data[property]
# managers.gd
extends Node

the way to fix this is comment _get method in resource.gd or remove autoload from project settings.

Steps to reproduce

  1. launch attachment
  2. add breakpoint in game.gd

Minimal reproduction project

New Game Project.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Up for grabs

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions