DebugBreak

デバグ中のプログラムのブレークポイントです。

void  DebugBreak();

戻り値

なし

注意事項

MQL5 プログラムの実行はデバグモードで起動された場合のみ中断されます。この関数は変数の値及び/またはステップ•バイ•ステップ実行の表示に使用することが出来ます。

Example:

//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
 {
//--- compile the file using F5
//--- in debugging mode, if i == j, stop at the DebugBreak() string  
  for(int i=0,j=20; i<20; i++,j--)
    {
    if(i==j)
        DebugBreak();
    }
 }