debugger_panel.rst 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. .. _doc_debugger_panel:
  2. Debugger panel
  3. ==============
  4. Many of Godot's debugging tools, including the debugger, can be found in the
  5. debugger panel at the bottom of the screen. Click on **Debugger** to open it.
  6. .. image:: img/overview_debugger.png
  7. The debugger panel is split into several tabs, each focusing on a specific task.
  8. Debugger
  9. ++++++++
  10. The Debugger tab opens automatically when the GDScript compiler reaches
  11. a breakpoint in your code.
  12. It gives you a `stack trace <https://en.wikipedia.org/wiki/Stack_trace>`__,
  13. information about the state of the object, and buttons to control
  14. the program's execution.
  15. You can use the buttons in the top-right corner to:
  16. - Skip all breakpoints. That way, you can save breakpoints for future
  17. debugging sessions.
  18. - Copy the current error message.
  19. - **Step Into** the code. This button takes you to the next line of code,
  20. and if it's a function, it steps line-by-line through the function.
  21. - **Step Over** the code. This button goes to the next line of code,
  22. but it doesn't step line-by-line through functions.
  23. - **Break**. This button pauses the game's execution.
  24. - **Continue**. This button resumes the game after a breakpoint or pause.
  25. .. warning::
  26. Breakpoints won't break on code if it's
  27. :ref:`running in a thread <doc_using_multiple_threads>`.
  28. This is a current limitation of the GDScript debugger.
  29. Errors
  30. ++++++
  31. This is where error and warning messages are printed while running the game.
  32. You can disable specific warnings in **Project Settings > Debug > GDScript**.
  33. Profiler
  34. ++++++++
  35. The profiler is used to see what code is running while your project is in use,
  36. and how that effects performance. A detailed explanation of how to use it can
  37. be found :ref:`here <doc_the_profiler>`.
  38. Network Profiler
  39. ++++++++++++++++
  40. The Network Profiler contains a list of all the nodes that communicate over the
  41. multiplayer API and, for each one, some counters on the amount of incoming and
  42. outgoing network interactions. It also features a bandwidth meter that displays
  43. the total bandwidth usage at any given moment.
  44. Monitors
  45. ++++++++
  46. The monitors are graphs of several aspects of the game while its running such as
  47. FPS, memory usage, how many nodes are in a scene and more. All monitors keep
  48. track of stats automatically, so even if one monitor isn't open while the game
  49. is running, you can open it later and see how the values changed.
  50. Video RAM
  51. +++++++++
  52. The **Video RAM** tab shows the video RAM usage of the game while it is running.
  53. It provides a list of every resource using video RAM by resource path, the type
  54. of resource it is, what format it is in, and how much Video RAM that resource is
  55. using. There is also a total video RAM usage number at the top right of the panel.
  56. .. image:: img/video_ram.png
  57. Misc
  58. ++++
  59. The **Misc** tab contains tools to identify the control nodes you are clicking
  60. at runtime:
  61. - **Clicked Control** tells you where the clicked node is in the scene tree.
  62. - **Clicked Control Type** tells you the type of the node you clicked is.