Community discussions

MikroTik App
 
dan_99503
newbie
Topic Author
Posts: 28
Joined: Mon Feb 07, 2005 3:41 am

scripting in the void

Mon Jun 27, 2005 12:42 am

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
 
edzix
Member
Member
Posts: 333
Joined: Thu Jul 01, 2004 3:01 pm
Location: Latvia

Mon Jun 27, 2005 3:02 pm

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
 
dan_99503
newbie
Topic Author
Posts: 28
Joined: Mon Feb 07, 2005 3:41 am

scripting in the void

Tue Jun 28, 2005 5:50 am

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.

Who is online

Users browsing this forum: abbio90, InfraErik and 38 guests