I wondered if there is a simple way I have have a snippet which traces the name of a method when called. I found className which is half-way there, but not something for the method… a 1-line trace(...) is what I’m after so I avoid typing the method name and leaving myself open to mistakes.
This is for testing the order things happen, when I don’t want to step through in the debugger.
I wondered if there is a simple way I have have a snippet which
Share
If you have compiled your swf with debug information and use the debug version of the player you can take a look at getStackTrace property from the Error object:
Quick example: