Debugging in MQL4


Is there any way of Mocking or injecting known / controlled data into MQL4 (or even MQL5)?

From time to time I have certain conditions I'd like to check, or a method I want to test. Right now all I can do is to pull the method out to a new project, and replace any inbuilt functions (OrderOpenPrice() for example) with a parameter and pass this in. This then means I need to maintain 2 copies of my code, which will inevitably lead to an issue when I forget to copy the newest version of a method into my EA!