How to get StackFrame on cocos2d-js

Hi all,
I found cocos2d-js can use CaptureCurrentStack, but i dont know how to do next?
Any one can help me?

@ricardo :), can you help me?

perhaps @pandamicro know the answer.I don’t know what’s “CaptureCurrentStack”… what is that? a function ?

1 Like

This is a funtion:
JS::CaptureCurrentStack(JSContext *cx, JS::MutableHandleObject stackp, unsigned maxFrameCount)

https://github.com/ricardoquesada/Spidermonkey/blob/master/js/src/jsapi.cpp Line 6524

https://github.com/ricardoquesada/Spidermonkey/blob/91cf7034a8ff90340d90d6543b248fa24158d2e4/security/sandbox/linux/glue/SandboxCrash.cpp Line 47

Sorry, I haven’t used that function.

1 Like