class_editordebuggersession.rst 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/EditorDebuggerSession.xml.
  6. .. _class_EditorDebuggerSession:
  7. EditorDebuggerSession
  8. =====================
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A class to interact with the editor debugger.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This class cannot be directly instantiated and must be retrieved via a :ref:`EditorDebuggerPlugin<class_EditorDebuggerPlugin>`.
  15. You can add tabs to the session UI via :ref:`add_session_tab<class_EditorDebuggerSession_method_add_session_tab>`, send messages via :ref:`send_message<class_EditorDebuggerSession_method_send_message>`, and toggle :ref:`EngineProfiler<class_EngineProfiler>`\ s via :ref:`toggle_profiler<class_EditorDebuggerSession_method_toggle_profiler>`.
  16. .. rst-class:: classref-reftable-group
  17. Methods
  18. -------
  19. .. table::
  20. :widths: auto
  21. +-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | void | :ref:`add_session_tab<class_EditorDebuggerSession_method_add_session_tab>` **(** :ref:`Control<class_Control>` control **)** |
  23. +-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`bool<class_bool>` | :ref:`is_active<class_EditorDebuggerSession_method_is_active>` **(** **)** |
  25. +-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`bool<class_bool>` | :ref:`is_breaked<class_EditorDebuggerSession_method_is_breaked>` **(** **)** |
  27. +-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | :ref:`bool<class_bool>` | :ref:`is_debuggable<class_EditorDebuggerSession_method_is_debuggable>` **(** **)** |
  29. +-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | void | :ref:`remove_session_tab<class_EditorDebuggerSession_method_remove_session_tab>` **(** :ref:`Control<class_Control>` control **)** |
  31. +-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | void | :ref:`send_message<class_EditorDebuggerSession_method_send_message>` **(** :ref:`String<class_String>` message, :ref:`Array<class_Array>` data=[] **)** |
  33. +-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | void | :ref:`toggle_profiler<class_EditorDebuggerSession_method_toggle_profiler>` **(** :ref:`String<class_String>` profiler, :ref:`bool<class_bool>` enable, :ref:`Array<class_Array>` data=[] **)** |
  35. +-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. .. rst-class:: classref-section-separator
  37. ----
  38. .. rst-class:: classref-descriptions-group
  39. Signals
  40. -------
  41. .. _class_EditorDebuggerSession_signal_breaked:
  42. .. rst-class:: classref-signal
  43. **breaked** **(** :ref:`bool<class_bool>` can_debug **)**
  44. Emitted when the attached remote instance enters a break state. If ``can_debug`` is ``true``, the remote instance will enter the debug loop.
  45. .. rst-class:: classref-item-separator
  46. ----
  47. .. _class_EditorDebuggerSession_signal_continued:
  48. .. rst-class:: classref-signal
  49. **continued** **(** **)**
  50. Emitted when the attached remote instance exits a break state.
  51. .. rst-class:: classref-item-separator
  52. ----
  53. .. _class_EditorDebuggerSession_signal_started:
  54. .. rst-class:: classref-signal
  55. **started** **(** **)**
  56. Emitted when a remote instance is attached to this session (i.e. the session becomes active).
  57. .. rst-class:: classref-item-separator
  58. ----
  59. .. _class_EditorDebuggerSession_signal_stopped:
  60. .. rst-class:: classref-signal
  61. **stopped** **(** **)**
  62. Emitted when a remote instance is detached from this session (i.e. the session becomes inactive).
  63. .. rst-class:: classref-section-separator
  64. ----
  65. .. rst-class:: classref-descriptions-group
  66. Method Descriptions
  67. -------------------
  68. .. _class_EditorDebuggerSession_method_add_session_tab:
  69. .. rst-class:: classref-method
  70. void **add_session_tab** **(** :ref:`Control<class_Control>` control **)**
  71. Adds the given ``control`` to the debug session UI in the debugger bottom panel.
  72. .. rst-class:: classref-item-separator
  73. ----
  74. .. _class_EditorDebuggerSession_method_is_active:
  75. .. rst-class:: classref-method
  76. :ref:`bool<class_bool>` **is_active** **(** **)**
  77. Returns ``true`` if the debug session is currently attached to a remote instance.
  78. .. rst-class:: classref-item-separator
  79. ----
  80. .. _class_EditorDebuggerSession_method_is_breaked:
  81. .. rst-class:: classref-method
  82. :ref:`bool<class_bool>` **is_breaked** **(** **)**
  83. Returns ``true`` if the attached remote instance is currently in the debug loop.
  84. .. rst-class:: classref-item-separator
  85. ----
  86. .. _class_EditorDebuggerSession_method_is_debuggable:
  87. .. rst-class:: classref-method
  88. :ref:`bool<class_bool>` **is_debuggable** **(** **)**
  89. Returns ``true`` if the attached remote instance can be debugged.
  90. .. rst-class:: classref-item-separator
  91. ----
  92. .. _class_EditorDebuggerSession_method_remove_session_tab:
  93. .. rst-class:: classref-method
  94. void **remove_session_tab** **(** :ref:`Control<class_Control>` control **)**
  95. Removes the given ``control`` from the debug session UI in the debugger bottom panel.
  96. .. rst-class:: classref-item-separator
  97. ----
  98. .. _class_EditorDebuggerSession_method_send_message:
  99. .. rst-class:: classref-method
  100. void **send_message** **(** :ref:`String<class_String>` message, :ref:`Array<class_Array>` data=[] **)**
  101. Sends the given ``message`` to the attached remote instance, optionally passing additionally ``data``. See :ref:`EngineDebugger<class_EngineDebugger>` for how to retrieve those messages.
  102. .. rst-class:: classref-item-separator
  103. ----
  104. .. _class_EditorDebuggerSession_method_toggle_profiler:
  105. .. rst-class:: classref-method
  106. void **toggle_profiler** **(** :ref:`String<class_String>` profiler, :ref:`bool<class_bool>` enable, :ref:`Array<class_Array>` data=[] **)**
  107. Toggle the given ``profiler`` on the attached remote instance, optionally passing additionally ``data``. See :ref:`EngineProfiler<class_EngineProfiler>` for more details.
  108. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  109. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  110. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  111. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  112. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  113. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  114. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`