Download MetaTrader 5

How to debug code?

To add comments, please log in or register
Have you found an error in our products? Apply to Service Desk!
Delbert
10
Delbert 2010.05.19 15:59 

When I set a breakpoint in MetaEditor and click "debug" menu, a message box will be popped saying "specified symbol is not selected".

And I can't find a way to go on. How to use the debugger in MT5? Is there any available document about how to debug?

If I stop at function OnCalculate,when next tick comes, what will the debugger act?


Thanks

Documentation on MQL5: Language Basics / Functions / Event Handling Functions
  • www.mql5.com
Language Basics / Functions / Event Handling Functions - Documentation on MQL5
Delbert
10
Delbert 2010.05.19 17:01  

When I press F5, no "debug" tab appears.
Delbert
10
Delbert 2010.05.19 17:09  

I just tried on an indicator,when trying EA, the debugger works.

What a pity if indicator is not supported...


To add comments, please log in or register