Error line number and file for Interval Jobs

Post here your suggestions for new possible features in SmartFoxServer.

Moderators: Lapo, Bax

Post Reply
NateDog
Posts: 52
Joined: 26 Jun 2006, 13:25

Error line number and file for Interval Jobs

Post by NateDog »

Seems then when an error is thrown and it a process that was invoked by an Interval, then the error reporting in the logs does not include the filename and line number where the error was thrown.

If this could be added it would greatly help with tracking and down those pesky bugs that seem to only come up once in a thousand transactions... thanks.
jflowers45
Posts: 63
Joined: 11 Jul 2006, 20:52

Post by jflowers45 »

This would be a HUGE help

Right now we get errors like "cannot read property length from undefined" which most likely means it's expecting an array but getting undefined. Problem is, that could be in tons of places!
How you doin?
jflowers45
Posts: 63
Joined: 11 Jul 2006, 20:52

Post by jflowers45 »

Although - in that particular case it's inside of a try/catch ... would be nice if "catch" could reference the file and line #
How you doin?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Yeah, I see. I am putting this on top of our todo list... we'll try to add it asap
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

A quick update to tell you that the problem has been fixed and you'll have better setInterval error handling in the next release

cheers :D
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply