Download MetaTrader 5

ea never stops on breakpoints.

To add comments, please log in or register
Does your signal already have a lot of of subscribers? It's time to think about the paid subscription!
Ido Tishel
31
Ido Tishel 2013.05.27 10:00 

Hi,

I'm new to MT 5 (I have  programming experience but not on MT 5).

How ever I cannot make MetaTrader to stop  when reaching a breakpoint.

Any ideas?

Alain Verleyen
Moderator
30775
Alain Verleyen 2013.05.27 10:44  
IdoTishel:

Hi,

I'm new to MT 5 (I have  programming experience but not on MT 5).

How ever I cannot make MetaTrader to stop  when reaching a breakpoint.

Any ideas?

See this article.
Ido Tishel
31
Ido Tishel 2013.05.27 11:03  
angevoyageur:
See this article.
I read the article. I put breakpoint in OnInit, it doesn't stop on my breakpoint.
Alain Verleyen
Moderator
30775
Alain Verleyen 2013.05.27 11:11  
IdoTishel:
I read the article. I put breakpoint in OnInit, it doesn't stop on my breakpoint.
How do you started your EA ? Maybe that helps.
Ido Tishel
31
Ido Tishel 2013.05.27 12:24  
angevoyageur:
How do you started your EA ? Maybe that helps.

I push the green button (start/resume debugging F5) on the editor toolbar.

I added a Print line after my breakpoint and i can see the print in the ToolBox window under "Expert" tab. 

Alain Verleyen
Moderator
30775
Alain Verleyen 2013.05.27 13:09  
IdoTishel:

I push the green button (start/resume debugging F5) on the editor toolbar.

I added a Print line after my breakpoint and i can see the print in the ToolBox window under "Expert" tab. 

Can you post your OnInit() function with the breakpoint shown (maybe a screenshot ?).
Ido Tishel
31
Ido Tishel 2013.05.27 13:18  
angevoyageur:
Can you post your OnInit() function with the breakpoint shown (maybe a screenshot ?).

I found it.

I run the mql5.exe as administrator and i can set breakpoints.

Thank you angevoyageur 

Alain Verleyen
Moderator
30775
Alain Verleyen 2013.05.27 13:29  
IdoTishel:

I found it.

I run the mql5.exe as administrator and i can set breakpoints.

Thank you angevoyageur 

Thank you, I learned something.
Ido Tishel
31
Ido Tishel 2013.05.28 09:44  

I was wrong, it worked once (maybe because i restarted? restart also doesn't work again).

Does anyone have any idea? 

I attached 2 files (ex5 and printscreen).

Files:
test1.mq5 2 kb
Alain Verleyen
Moderator
30775
Alain Verleyen 2013.05.28 12:08  
IdoTishel:

I was wrong, it worked once (maybe because i restarted? restart also doesn't work again).

Does anyone have any idea? 

I attached 2 files (ex5 and printscreen).

It works for me. What's options do you have in MetaEditor ?

If that doesn't help, that's maybe an UAC issue, try to install a new MT5 platform, outside any Windows System files, for example in C:\MT5.

To add comments, please log in or register