flex - Can I make Flash Builder break on TypeError or ReferenceError? -
right flash builder telling me have these errors when i'm debugging, won't tell me line numbers , can't figure out how make break when errors occur. possible?
example console output:
typeerror: error #1009: cannot access property or method of null object reference. referenceerror: error #1056: cannot create property is_flying on entities.bird.
thanks!
ok, based on last comment have 2 suggestions:
try adding uncaught exception handler app. in event handler, can print own stack trace see error coming from.
private function uncaughterrorhandler(event:uncaughterrorevent):void { // note suggested doing this, might details // out of event object passed function var e:error = new error('hi'); trace(e.getstacktrace(); }
alternatively, since 1 of errors mentions is_flying
property, find places property set , wrap code in try/catch
block.
finally, weird scenario , coworkers experiencing. if can identify/reproduce problem, may want submit bug adobe.
Comments
Post a Comment