Download MetaTrader 5

[Add Watch] seem not work?

To add comments, please log in or register
ChiShun Chen
3072
ChiShun Chen  

Hi,


In my memory,it can work well long time ago when i use this function.


but recently,i back to modify a old program,

When i put var into [Add Watch],

its value  always show "Expression could not  be evaluated".


Whats wrong?


Thanks in advance.

qjol
3243
qjol  

show the relevant code using SRC

i can't seem to find a function/command called Add Watch

Alain Verleyen
Moderator
32417
Alain Verleyen  
Ian Venner
2584
Ian Venner  
It works fine in Editor 946
RichPiano
169
RichPiano  

I have this problem as well. Is there no solution? :(


Values are defenitely in scope and i also tried:


class CFix { } ExtFix;


It is still not working. Any suggestions?

whroeder1
15576
whroeder1  
RichPiano: I have this problem as well. Is there no solution? :(


Values are defenitely in scope and i also tried:

class CFix { } ExtFix;

  1. Solution to what? You haven't stated a problem. The debugger works just fine in build 1090


RichPiano
169
RichPiano  

Thank you for your answer.


Howerver 1) why does my editor not work then?


Meta Editor interface while testing an indicator


2) It does compile perfectly well on my computer. It's a legit way to declare classes or structs? Have you tested it?


I have a different build though. Version 5.00 build 1601, last updated on May 19. Maybe this is an issue but I don't see how..


My version

whroeder1
15576
whroeder1  
RichPiano:

Howerver 1) why does my editor not work then?

2) It does compile perfectly well on my computer. It's a legit way to declare classes or structs? Have you tested it?

I have a different build though. Version 5.00 build 1601, last updated on May 19. Maybe this is an issue but I don't see how..

  1. How should we know? We don't have your code.
  2. OK
  3. That's not the MT4 build number, (the terminal,) That's the editor's number same for MT4 (1090) and MT5.
RichPiano
169
RichPiano  

Ok I have the same MT4 build number (1090).


But judging from the screenshot alone isn't it weird that I can't even display i, the counting variable? how would the rest of my code even contribute to that failure?


I also tested it on MetaQuotes code and it doesn't work either. So I guess I'm doing something completely wrong. I just don't know what. Here's what I did:


1. Place stop point with F9 somewhere

2. Run code in debug mode. It stops at stop point.

3. I add variables (in scope) to my watchlist. they fail to show.


Where did I mess this up? :/

whroeder1
15576
whroeder1  
That's all there is. Try clicking under the expression (Ausdruck) header an manually type in the variable name.
RichPiano
169
RichPiano  
Thanks but that didn't work. Well, I guess I have to go back to classic means for bugfixing. printf() and stuff... :()
12
To add comments, please log in or register