Download MetaTrader 5

Debugger question

To add comments, please log in or register
Robert Simon
44
Robert Simon  

First of all, thank u for all MetaQuotes programmer to deploy some debugger option for programmers.

but, iam bit confused, about watch window, could somebody to help me or explain this:

Simply define a loop with internal variable, and i add the "watch" variable to the watch window

for(int i=0; i<10; i++)
  int watch=i;

and detect the wath window always said :

ok, i tried to vlose into brackets but a result is same

for(int i=0; i<10; i++) {
  int watch=i;
}

hmm and what would happen if I add one more line into the loops...

for(int i=0; i<10; i++) {
  int watch=i;
  Print("dummy");
}

and watch them its work, heureka! :D

So my question is it normally or its bug? (i suspect the latter option is right.)

cya

Ilyas
1205
Ilyas  
It is normally, just define variable "watch" before cycle.

To add comments, please log in or register