class_editordebuggerplugin.rst 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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/EditorDebuggerPlugin.xml.
  6. .. _class_EditorDebuggerPlugin:
  7. EditorDebuggerPlugin
  8. ====================
  9. **Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A base class to implement debugger plugins.
  11. Description
  12. -----------
  13. ``EditorDebuggerPlugin`` provides functions related to the editor side of the debugger.
  14. You don't need to instantiate this class; that is automatically handled by the debugger. :ref:`Control<class_Control>` nodes can be added as child nodes to provide a GUI for the plugin.
  15. Do not free or reparent this node, otherwise it becomes unusable.
  16. To use ``EditorDebuggerPlugin``, register it using the :ref:`EditorPlugin.add_debugger_plugin<class_EditorPlugin_method_add_debugger_plugin>` method first.
  17. Methods
  18. -------
  19. +-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`bool<class_bool>` | :ref:`has_capture<class_EditorDebuggerPlugin_method_has_capture>` **(** :ref:`StringName<class_StringName>` name **)** |
  21. +-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`bool<class_bool>` | :ref:`is_breaked<class_EditorDebuggerPlugin_method_is_breaked>` **(** **)** |
  23. +-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | :ref:`bool<class_bool>` | :ref:`is_debuggable<class_EditorDebuggerPlugin_method_is_debuggable>` **(** **)** |
  25. +-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | :ref:`bool<class_bool>` | :ref:`is_session_active<class_EditorDebuggerPlugin_method_is_session_active>` **(** **)** |
  27. +-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | void | :ref:`register_message_capture<class_EditorDebuggerPlugin_method_register_message_capture>` **(** :ref:`StringName<class_StringName>` name, :ref:`Callable<class_Callable>` callable **)** |
  29. +-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | void | :ref:`send_message<class_EditorDebuggerPlugin_method_send_message>` **(** :ref:`String<class_String>` message, :ref:`Array<class_Array>` data **)** |
  31. +-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | void | :ref:`unregister_message_capture<class_EditorDebuggerPlugin_method_unregister_message_capture>` **(** :ref:`StringName<class_StringName>` name **)** |
  33. +-------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. Signals
  35. -------
  36. .. _class_EditorDebuggerPlugin_signal_breaked:
  37. - **breaked** **(** :ref:`bool<class_bool>` can_debug **)**
  38. Emitted when the game enters a break state.
  39. ----
  40. .. _class_EditorDebuggerPlugin_signal_continued:
  41. - **continued** **(** **)**
  42. Emitted when the game exists a break state.
  43. ----
  44. .. _class_EditorDebuggerPlugin_signal_started:
  45. - **started** **(** **)**
  46. Emitted when the debugging starts.
  47. ----
  48. .. _class_EditorDebuggerPlugin_signal_stopped:
  49. - **stopped** **(** **)**
  50. Emitted when the debugging stops.
  51. Method Descriptions
  52. -------------------
  53. .. _class_EditorDebuggerPlugin_method_has_capture:
  54. - :ref:`bool<class_bool>` **has_capture** **(** :ref:`StringName<class_StringName>` name **)**
  55. Returns ``true`` if a message capture with given name is present otherwise ``false``.
  56. ----
  57. .. _class_EditorDebuggerPlugin_method_is_breaked:
  58. - :ref:`bool<class_bool>` **is_breaked** **(** **)**
  59. Returns ``true`` if the game is in break state otherwise ``false``.
  60. ----
  61. .. _class_EditorDebuggerPlugin_method_is_debuggable:
  62. - :ref:`bool<class_bool>` **is_debuggable** **(** **)**
  63. Returns ``true`` if the game can be debugged otherwise ``false``.
  64. ----
  65. .. _class_EditorDebuggerPlugin_method_is_session_active:
  66. - :ref:`bool<class_bool>` **is_session_active** **(** **)**
  67. Returns ``true`` if there is an instance of the game running with the attached debugger otherwise ``false``.
  68. ----
  69. .. _class_EditorDebuggerPlugin_method_register_message_capture:
  70. - void **register_message_capture** **(** :ref:`StringName<class_StringName>` name, :ref:`Callable<class_Callable>` callable **)**
  71. Registers a message capture with given ``name``. If ``name`` is "my_message" then messages starting with "my_message:" will be called with the given callable.
  72. Callable must accept a message string and a data array as argument. If the message and data are valid then callable must return ``true`` otherwise ``false``.
  73. ----
  74. .. _class_EditorDebuggerPlugin_method_send_message:
  75. - void **send_message** **(** :ref:`String<class_String>` message, :ref:`Array<class_Array>` data **)**
  76. Sends a message with given ``message`` and ``data`` array.
  77. ----
  78. .. _class_EditorDebuggerPlugin_method_unregister_message_capture:
  79. - void **unregister_message_capture** **(** :ref:`StringName<class_StringName>` name **)**
  80. Unregisters the message capture with given name.
  81. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  82. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  83. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  84. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  85. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  86. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`