Debug stacktrace.

Hello everyone.

How can I identify the relevant part of the Lua source based on the stack trace sent from the user?

For example,

?:0: attempt to index a nil value

stack traceback: ?: in function ‘listener’ /Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/timer/timer.lua:210: in function ‘method’ /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:221: in function

and,

table: 0x65b176f8

stack traceback: at error (External Function) at (Unknown Function) (?:0)

and,

?:0: attempt to index field ‘?’ (a nil value)

stack traceback: ?: in function ‘getLang’ ?: in function ‘method’ /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:221: in function ‘dispatchEvent’ /Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/composer/composer.lua:1391: in function ‘listener’ /Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/timer/timer.lua:210: in function ‘method’ /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:221: in function

an more…

I’m happy to advise on useful tools or methods.

Thank you.

I can’t answer your question, but I can tell you that is a timer.performWithDelay() call where your code or code is trying to manipulate a display object that has been removed.

You can increase the debug output via this build.settings flag:

neverStripDebugInfo

https://docs.coronalabs.com/guide/distribution/advancedSettings/index.html#build-control

thank you for your reply.

neverStripDebugInfo

This information was what I needed!

It is very useful.

Thank you very much!

I can’t answer your question, but I can tell you that is a timer.performWithDelay() call where your code or code is trying to manipulate a display object that has been removed.

You can increase the debug output via this build.settings flag:

neverStripDebugInfo

https://docs.coronalabs.com/guide/distribution/advancedSettings/index.html#build-control

thank you for your reply.

neverStripDebugInfo

This information was what I needed!

It is very useful.

Thank you very much!