Search code examples
symbianstack-tracepanic

Symbian: how to get stack trace on panic when running on device?


Could somebody please give me a hint about how to get stack trace in Symbian. I'm experiencing KERN-EXEC 0 panic, but cannot locate it's origin. I've seen other SO questions about this, like this, but there's only a description of how to solve this problem on emulator. But my program deals with Wi-Fi and have to be run on device. Maybe there's some way of having the stack traced or break at panic?


Solution

  • I had the same problem which, the OS gives you no help whatsoever.

    What I did, which solved my problem and actually helps a lot, it to come up with your own manual stack trace implementation. See parts of my version here (which happens to be the same question you linked to).

    My answer has lots of pros and cons.

    • Pro - you get a good stack trace that helps a lot in debugging.
    • Con - lots of manual work to implement and to maintain.
    • Con - may cause performance slow-downs (I set mine up so it only gets compiled for debug builds only).