Including Debug Info in Stacktrace

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Including Debug Info in Stacktrace

Erik J. Thomas
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 | Threaded
Open this post in threaded view
|

Re: Including Debug Info in Stacktrace

Alex Harui-2
Hi Erik,

Don't know for sure.  Most internet searches say it isn't possible.

This post claims there is a way.
https://stackoverflow.com/questions/4473059/how-can-i-get-stacktrace-for-ad
obe-air-global-runtime-errors-in-non-debug-mode/27289101#27289101

HTH,
-Alex

On 3/22/18, 11:29 AM, "Erik J. Thomas" <[hidden email]> wrote:

>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/lin
>qto/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 | Threaded
Open this post in threaded view
|

Re: Including Debug Info in Stacktrace

Erik J. Thomas
Looks like it could work-man what a find if it works. Will try that tomorrow. Thanks Alex!

Erik

On Mar 22, 2018, at 2:44 PM, Alex Harui <[hidden email]> wrote:

Hi Erik,

Don't know for sure.  Most internet searches say it isn't possible.

This post claims there is a way.
https://stackoverflow.com/questions/4473059/how-can-i-get-stacktrace-for-ad
obe-air-global-runtime-errors-in-non-debug-mode/27289101#27289101

HTH,
-Alex

On 3/22/18, 11:29 AM, "Erik J. Thomas" <[hidden email]> wrote:

> 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/lin
> qto/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!
>
>