class_editordebuggersession.rst 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/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>`\ (\ control\: :ref:`Control<class_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>`\ (\ control\: :ref:`Control<class_Control>`\ ) |
  31. +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | |void| | :ref:`send_message<class_EditorDebuggerSession_method_send_message>`\ (\ message\: :ref:`String<class_String>`, data\: :ref:`Array<class_Array>` = []\ ) |
  33. +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | |void| | :ref:`set_breakpoint<class_EditorDebuggerSession_method_set_breakpoint>`\ (\ path\: :ref:`String<class_String>`, line\: :ref:`int<class_int>`, enabled\: :ref:`bool<class_bool>`\ ) |
  35. +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | |void| | :ref:`toggle_profiler<class_EditorDebuggerSession_method_toggle_profiler>`\ (\ profiler\: :ref:`String<class_String>`, enable\: :ref:`bool<class_bool>`, data\: :ref:`Array<class_Array>` = []\ ) |
  37. +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. .. rst-class:: classref-section-separator
  39. ----
  40. .. rst-class:: classref-descriptions-group
  41. Signals
  42. -------
  43. .. _class_EditorDebuggerSession_signal_breaked:
  44. .. rst-class:: classref-signal
  45. **breaked**\ (\ can_debug\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_EditorDebuggerSession_signal_breaked>`
  46. Emitted when the attached remote instance enters a break state. If ``can_debug`` is ``true``, the remote instance will enter the debug loop.
  47. .. rst-class:: classref-item-separator
  48. ----
  49. .. _class_EditorDebuggerSession_signal_continued:
  50. .. rst-class:: classref-signal
  51. **continued**\ (\ ) :ref:`🔗<class_EditorDebuggerSession_signal_continued>`
  52. Emitted when the attached remote instance exits a break state.
  53. .. rst-class:: classref-item-separator
  54. ----
  55. .. _class_EditorDebuggerSession_signal_started:
  56. .. rst-class:: classref-signal
  57. **started**\ (\ ) :ref:`🔗<class_EditorDebuggerSession_signal_started>`
  58. Emitted when a remote instance is attached to this session (i.e. the session becomes active).
  59. .. rst-class:: classref-item-separator
  60. ----
  61. .. _class_EditorDebuggerSession_signal_stopped:
  62. .. rst-class:: classref-signal
  63. **stopped**\ (\ ) :ref:`🔗<class_EditorDebuggerSession_signal_stopped>`
  64. Emitted when a remote instance is detached from this session (i.e. the session becomes inactive).
  65. .. rst-class:: classref-section-separator
  66. ----
  67. .. rst-class:: classref-descriptions-group
  68. Method Descriptions
  69. -------------------
  70. .. _class_EditorDebuggerSession_method_add_session_tab:
  71. .. rst-class:: classref-method
  72. |void| **add_session_tab**\ (\ control\: :ref:`Control<class_Control>`\ ) :ref:`🔗<class_EditorDebuggerSession_method_add_session_tab>`
  73. Adds the given ``control`` to the debug session UI in the debugger bottom panel. The ``control``'s node name will be used as the tab title.
  74. .. rst-class:: classref-item-separator
  75. ----
  76. .. _class_EditorDebuggerSession_method_is_active:
  77. .. rst-class:: classref-method
  78. :ref:`bool<class_bool>` **is_active**\ (\ ) :ref:`🔗<class_EditorDebuggerSession_method_is_active>`
  79. Returns ``true`` if the debug session is currently attached to a remote instance.
  80. .. rst-class:: classref-item-separator
  81. ----
  82. .. _class_EditorDebuggerSession_method_is_breaked:
  83. .. rst-class:: classref-method
  84. :ref:`bool<class_bool>` **is_breaked**\ (\ ) :ref:`🔗<class_EditorDebuggerSession_method_is_breaked>`
  85. Returns ``true`` if the attached remote instance is currently in the debug loop.
  86. .. rst-class:: classref-item-separator
  87. ----
  88. .. _class_EditorDebuggerSession_method_is_debuggable:
  89. .. rst-class:: classref-method
  90. :ref:`bool<class_bool>` **is_debuggable**\ (\ ) :ref:`🔗<class_EditorDebuggerSession_method_is_debuggable>`
  91. Returns ``true`` if the attached remote instance can be debugged.
  92. .. rst-class:: classref-item-separator
  93. ----
  94. .. _class_EditorDebuggerSession_method_remove_session_tab:
  95. .. rst-class:: classref-method
  96. |void| **remove_session_tab**\ (\ control\: :ref:`Control<class_Control>`\ ) :ref:`🔗<class_EditorDebuggerSession_method_remove_session_tab>`
  97. Removes the given ``control`` from the debug session UI in the debugger bottom panel.
  98. .. rst-class:: classref-item-separator
  99. ----
  100. .. _class_EditorDebuggerSession_method_send_message:
  101. .. rst-class:: classref-method
  102. |void| **send_message**\ (\ message\: :ref:`String<class_String>`, data\: :ref:`Array<class_Array>` = []\ ) :ref:`🔗<class_EditorDebuggerSession_method_send_message>`
  103. Sends the given ``message`` to the attached remote instance, optionally passing additionally ``data``. See :ref:`EngineDebugger<class_EngineDebugger>` for how to retrieve those messages.
  104. .. rst-class:: classref-item-separator
  105. ----
  106. .. _class_EditorDebuggerSession_method_set_breakpoint:
  107. .. rst-class:: classref-method
  108. |void| **set_breakpoint**\ (\ path\: :ref:`String<class_String>`, line\: :ref:`int<class_int>`, enabled\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_EditorDebuggerSession_method_set_breakpoint>`
  109. Enables or disables a specific breakpoint based on ``enabled``, updating the Editor Breakpoint Panel accordingly.
  110. .. rst-class:: classref-item-separator
  111. ----
  112. .. _class_EditorDebuggerSession_method_toggle_profiler:
  113. .. rst-class:: classref-method
  114. |void| **toggle_profiler**\ (\ profiler\: :ref:`String<class_String>`, enable\: :ref:`bool<class_bool>`, data\: :ref:`Array<class_Array>` = []\ ) :ref:`🔗<class_EditorDebuggerSession_method_toggle_profiler>`
  115. Toggle the given ``profiler`` on the attached remote instance, optionally passing additionally ``data``. See :ref:`EngineProfiler<class_EngineProfiler>` for more details.
  116. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  117. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  118. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  119. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  120. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  121. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  122. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  123. .. |void| replace:: :abbr:`void (No return value.)`