scripting in the void

I have had to get into scripting on Mikrotik and I’m wondering if I am missing some debugging tools??

If there is one error anywhere in a script it won’t output anything. No errors, no message, no info. This is worse than any scripting language I have ever used. I have to comment out lines if it doesn work just to find the line that failed (what a joke).

I am hoping I am just missing something and that MT scripting isn’t as bad as it seems.

  • Dan

in v2.9 there won’t be any errors, in v2.8 there is.
Use temp variables along with :log command to find out the problem.

Edgars

Ok that sounds livable.. I haven’t tried scripting in 2.8.. Thanks.

I have commented and :log’d to solve the problems I was having. The only thing I’m running into now is :global doesn’t seem to pass it’s contents to/from other scripts.