---
title: "Debug - Main menu - MetaEditor Help"
description: "The menu is intended for debugging MQL4/MQL5 programs. It contains the following commands: ... - Debug - Main menu - MetaEditor Help"
image: "https://www.metatrader5.com/i/logo_metatrader5.png"
url: "https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_debug"
---

[MetaEditor Help](https://www.metatrader5.com/en/metaeditor/help) → [Main menu](https://www.metatrader5.com/en/metaeditor/help/main_menu) → Debug

# Debug

The menu is intended for [debugging](https://www.metatrader5.com/en/metaeditor/help/development/debug) MQL4/MQL5 programs. It contains the following commands:

|  | Command | Description |
| --- | --- | --- |
| ![Start](https://www.metatrader5.com/i/help/metaeditor/en/start_debug_icon.png) | Start/Resume debugging on real data | Launch [debugging](https://www.metatrader5.com/en/metaeditor/help/development/debug) of the current code on a chart that is updated in real time. |
| ![Start on History Data](https://www.metatrader5.com/i/help/metaeditor/en/debug_history_icon.png) | Start on History Data | Launch [debugging on history](https://www.metatrader5.com/en/metaeditor/help/development/debug#history). A program check runs in the visual testing mode in the strategy tester. An application is executed on a chart with an emulated sequence of ticks in the tester. |
| ![Pause](https://www.metatrader5.com/i/help/metaeditor/en/break_debug_icon.png) | Pause | Pause a program debugging. To continue debugging, click Resume. |
| ![Stop](https://www.metatrader5.com/i/help/metaeditor/en/stop_debug_icon.png) | Stop | Stop debugging. |
| ![Step Into](https://www.metatrader5.com/i/help/metaeditor/en/step_into_icon.png) | Step Into | Move one step of program execution accessing the called functions. |
| ![Step Over](https://www.metatrader5.com/i/help/metaeditor/en/step_over_icon.png) | Step Over | Move one step of program execution without accessing the called functions. |
| ![Step Out](https://www.metatrader5.com/i/help/metaeditor/en/step_out_icon.png) | Step Out | Execute a single step of a program one level higher. |
| ![Enable a breakpoint](https://www.metatrader5.com/i/help/metaeditor/en/breakpoint_icon.png) | Toggle Breakpoint | Enable/disable a [breakpoint](https://www.metatrader5.com/en/metaeditor/help/development/debug#breakpoint) on the current line depending on its current status. |
| ![Clear All Breakpoints](https://www.metatrader5.com/i/help/metaeditor/en/clear_all_breakpoints_icon.png) | Clear All Breakpoints | Clear all breakpoints from the currently debugged program. |
| ![Start profiling on real data](https://www.metatrader5.com/i/help/metaeditor/en/start_profiling_icon.png) | Start profiling on real data | Launch the [profiling](https://www.metatrader5.com/en/metaeditor/help/development/profiling) of the current code on a normal chart that is updated in real time. |
| ![Start profiling on history data](https://www.metatrader5.com/i/help/metaeditor/en/start_profiling_history_icon.png) | Start profiling on history data | Launch the [profiling](https://www.metatrader5.com/en/metaeditor/help/development/profiling) of the current code in the Strategy Tester in the visual mode. |
| ![Stop Profiling](https://www.metatrader5.com/i/help/metaeditor/en/stop_profiling_icon.png) | Stop Profiling | Stop profiling. |

## In this section

- [File](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_file)
- [Edit](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_edit)
- [Git](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_git)
- [Search](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_search)
- [View](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_view)
- Debug
- [Build](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_build)
- [Tools](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_tools)
- [Window](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_window)
- [Help](https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_help)

```json
{"@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ {"@type": "ListItem", "position": 1, "item": {"@id": "https://www.metatrader5.com/en/metaeditor/help", "name": "MetaEditor Help"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "https://www.metatrader5.com/en/metaeditor/help/main_menu", "name": "Main menu"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "https://www.metatrader5.com/en/metaeditor/help/main_menu/main_menu_debug", "name": "Debug"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: Debug", "acceptedAnswer": { "@type": "Answer", "text": "The menu is intended for debugging MQL4/MQL5 programs. It contains the following commands:  ..." } }] }
```
