How to debug code?

 

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
 

When I press F5, no "debug" tab appears.
 

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

What a pity if indicator is not supported...


Reason: