debug button is disabled

 

Since yesterday I can't debug my main EA because the debug button is disabled (grayed out).

I am able to debug indicators, but not the EA.

Any body knows the  reason for that to happen?

 

I discovered the problem, and a solution.

The location of the file to be debugged was not recognized (or missing, or who knows) by the mt5 editor. Even though the file was opened in the editor, and compiled, it didn't let me debug it.

Solution: I selected the file in the "Expert:" entry in the "Settings" tab of the Strategy Tester, then I clicked on the IDE button to bring it to the editor. This way, the editor opened another tab with the same file as before, but this time the debug button is ready to use. 

I don't know the reason for the file  missing location by the editor, but it may have been because the editor crashed, and when it relaunched, it only had a few of the files I have originally open. So, something went missing after the restart of the editor.

 

You are probably mixing different folders. You should check the full path of your files.

It may happens if MetaEditor was started in portable mode, then in normal mode. I am suggesting you to check carefully before you have more serious issue.

 
Alain Verleyen #:

You are probably mixing different folders. You should check the full path of your files.

It may happens if MetaEditor was started in portable mode, then in normal mode. I am suggesting you to check carefully before you have more serious issue.

Thank you Alain,

I am now checking the path every time I open a file. So far so good.

Thanks for the suggestion. I don't know anything about "portable" versus "normal" mode for the MetaEditor.

thanks

PS: I am using Linux OS.