If anyone has used SQL profiler, this might be familiar...Basically when the code runs, the SQL profiler spits out very detailed output of each and every line of the code operation.
Is it possible to run EA like that may be using an external var
external bool Enable_Debug_Mode = true|false
display in the experts journal
Executing line 1
Executing line 2 and so on.
Just looking for a way to troubleshoot EA.
I know what you mean, but it is not possible.
There are two ways that I debug MT4 code:
1/ Use the Print() function to display output in the Terminal window.
Which is quite slow displaying output.
2/ Write the output to a file. This is very quick.
How to write output to file?
Thanks for the reply. Can you pls give an example as to how to write output of every line to a file?.
Sometimes the EA hangs the terminal, so I am trying to find out which line of code is causing that.
Here we go...
DataFileName = ("mymt4logfile" + ".csv");
handle=FileOpen(DataFileName, FILE_CSV|FILE_WRITE, ',');