Hey all:

When interactively debugging an AIR mobile app when a runtime error occurs, 
Error.stackTrace includes file names and line numbers:

  Error: Test Error
   at Function/()[*/.../src/Main.mxml:440*]
   at 
com.linqto.navcon.controller::RESTService/makeCallBack()[*/.../src/com/linqto/navcon/controller/RESTService.as:519*]
   at com.linqto.navcon.controller::RESTService/result()

But running the app (run, or from a release build), Error.stackTrace no longer 
includes file names and line numbers:

Error: Test Error
   at Function/()
   at com.linqto.navcon.controller::RESTService/makeCallBack()
   at com.linqto.navcon.controller::RESTService/result()

I am including debug=true in the compiler options file for mxmlc and it still 
does not generate a debug SWF:

<flex-config>
   <compiler>
   ...
      <debug>true</debug>
  </compiler>
   <swf-version>38</swf-version>
   <target-player>27.0</target-player>
</flex-config>

Information:[navcon]: mxmlc 
-load-config=/.../Library/Caches/IntelliJIdea2017.2/compile-server/navcon_19ada740/_temp_/IntelliJ_IDEA/idea-1162E68-3020E7BE.xml
 -load-config=/.../navcon/compiler-options.xml

Is there a way to include filenames and line numbers in a release build of an 
AIR mobile app?

We are uploading the stacktrace to a server API which is why we need this. 
Without files and line numbers it's almost useless information. We fully 
understand the performance hit by doing this.

Thanks!


Reply via email to