Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7442659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:12:34+00:00 2026-05-29T11:12:34+00:00

There doesn’t seem to be a way to access stack traces for a released

  • 0

There doesn’t seem to be a way to access stack traces for a released version of a Flex app running on a generic user’s non-debugger version of flash. I can still get access to the error number, but that’s just not good enough in some cases.

Was wondering if anyone has any tips on how to approach this. All I can think of is logging as many events as possible in some buffer and then dumping that to the server when a crash happens. I’ve implemented this and it’s ok but, unfortunately, adding logging all over the place doesn’t seem very practical if your code base is reasonably extensive. But maybe there’s a catch all way to log all sorts of stuff in some simple way that I have not thought of – some sort of centralized listener? Or maybe some other approach?

Will take any advice (although ideally skip the “you should test your app before you release it”?).

thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T11:12:35+00:00Added an answer on May 29, 2026 at 11:12 am

    There are not a lot of things you can do at this point, unfortunately. The obvious place to start would of course be trying to get the user to run the program on a debugger version of Flash Player. But if you can’t, and you need to find a way to “build in” runtime bug detection in a “catch-all” kind of way, there are only two immediate remedies I can think of:

    1. Insert default logging messages at critical points in your application. This should be at a higher level of abstraction, possibly when creating or removing modules, or starting and finishing complex tasks. Ideally, logging should also be configurable, so that you can turn verbose output on or off when you need it, e.g. by changing a configuration file, or setting an environment variable during compilation – debugging code can slow down your application quite a bit, and you don’t want to have to add and remove individual trace statements every time you get a bug. If you’re an advanced ActionScript developer, you might even want to find a way to implement logging through metadata and/or custom namespaces – it’s a much cleaner approach.

    2. Apply the catch-all approach to your entire application and trace the stack for every bug that is caught there. Perhaps this might not be much more explicit than what you already have, but at least you get to shut down the program cleanly (for example, by showing a message to the user) instead of just letting it crash.

    It is unfortunate that you’ve already created your program with a “don’t tell me to test before I release” attitude – there are just not many things you can do “in retrospect”, except fire up the debugger and put in some extra hours. In fact, you should be testing every single line of code before you even write it… but I won’t get into that – TDD is usually something that needs way more explanation than a single answer.

    Here’s a few simple things you can do to make your life easier in the future:

    The biggest mistake people commonly make is not to let errors happen in the first place: If, for example, you have many null-checks in your application code:

    if (myVar != null) doMyStuff(); // or
    if (myVar == null) return;
    

    this is usually used to prevent the dreaded #1009 error from showing up, it’s relatively effective, and at first glance it’s faster than using a try...catch block. But it will also obscure the root of the problem, or even let it go unnoticed: Your error might show up at a later point, where something else should have been initialized in doMyStuff(), or there might be places where you simply forgot to check.

    The best strategy to become error free is:

    • Never return or assign illegal values (e.g. don’t allow your functions to return null, assign initial values to all variables, etc.)

    • Implement try...catch blocks at critical points in the application (whenever something can go wrong, essentially). These, then, send detailed log messages when errors are caught, and so you can easily spot the cause without having to resort to lengthy debugging sessions.

    • Create self-validating objects. I like to have a verify() method, which is called before an object is initialized or added to the stage, check all the necessary dependencies – and throw an InstantiationException if anything is missing or has the wrong value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since there doesn't seem to be a way for a user to take a
There doesn't seem to be a dictionary.AddRange() method. Does anyone know a better way
There doesn't seem to be an accepted way of sending down a header parameter
There doesn't seem to be a way to extend an existing JavaScript array with
In Xcode, there doesn't seem to be an obvious way to do this. Visual
There doesn't seem to be an easy way in (well supported) css to do
Since there doesn't seem to be any way to load old VB6 (ActiveReports) reports
I'm wondering what is the best way to test the accelerometer? There doesn't seem
It always seems to pick up the version from /usr/lib and there doesn't seem
There doesn't seem to be many choices out there for running functional tests on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.