Finding Line Number after error

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
gchichester
Pro Scripter
Posts: 132
Joined: Mon Dec 22, 2008 4:56 pm
Location: St Augustine FL

Finding Line Number after error

Post by gchichester » Wed Jun 29, 2011 6:29 pm

Does anyone have a special technique for locating line #'s in scripts
with multiple "includes" when a error occurs showing the line #?
I'm working with one that has 7 and which script is having the issue.

Thanks

Gil

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Jun 30, 2011 7:26 am

The debugger is what I use. Step past each Include or put a breakpoint just before each include and when the include expands you can see the line numbers. Won't take long to determine which Include is in the range and then when it expands you'll see the line you're interested in.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts