sokramm:
Apart from the option of using an argument for the name of the function that is calling? Let's say we want to go deep down to 'start()'.
We don't even have a debugger so I doubt there is anything like what you are describing. Why don't you just have a debug option that you can turn on and off from the parameters then add a line like . . .
if(Debug) Print("Calling processError from start . . . ");
before the line that calls the function ?
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi there,
I have been looking in the forum for a way to print the call stack to know which function called another function but I have not read anything related to that. I have a function called "processError" which takes care of error handling and it would be nice to be able to print where the error was generated by "somehow" printing a call stack like other languages do (Java,PHP) when you get an exception. Has anyone figured out a workaround to do anything like this in mql4? Apart from the option of using an argument for the name of the function that is calling? Let's say we want to go deep down to 'start()'.
Looking for ideas! Thanks