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

print_debug() node #821

Open
whokarez opened this issue Oct 11, 2024 · 1 comment
Open

print_debug() node #821

whokarez opened this issue Oct 11, 2024 · 1 comment
Labels
kind/enhancement New feature or request

Comments

@whokarez
Copy link

Description

i just came from the suggestions section on discord , one of the admins asked me to post it here , there is a special type of the print() function called print_debug() and it outputs much more info that are very beneficial for developers during debugging , so far we don't have it at orchestrator , is it possible to implement it in the future ? thank you very much im such a big fan of this truly amazing project

Implementation ideas

No response

@whokarez whokarez added the kind/enhancement New feature or request label Oct 11, 2024
@Naros
Copy link
Member

Naros commented Oct 12, 2024

As pointed out on Discord, the print_debug function is a GDScript-specific function defined in gdscript_utility_functions.cpp inside Godot. There are several utility functions defined here, which include:

  • type_exists
  • _char
  • range
  • inst_to_dict
  • dict_to_inst
  • Color8
  • print_debug
  • print_stack
  • get_stack
  • len
  • is_instance_of

These are functions exposed by the GDScriptLanguage as get_public_functions(). Such functions are not exposed as part of the extension_api.json and are therefore not bound by the Scripting API, but are only bound within the context of GDScript. This would make defining unique, internal Orchestrator functions quite easy to expose perhaps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants