unhandledError on device

Hi,

I use a listener to get unhandledError and on simulator I get more information than on phone.

Do you know why?

On phone I get only 0attempttocallmethodremoveSelfanilvalue

And on simulator I get the file and the line. 

Someone can help or explain why it’s like this.

My code:

local function myUnhandledErrorListener( event ) local chainesave=event.errorMessage.."stack"..event.stackTrace chainesave=chainesave:gsub("%c","") chainesave=chainesave:gsub("%p","") chainesave=chainesave:gsub("%s","") -- I send the data to my server    return true end Runtime:addEventListener("unhandledError", myUnhandledErrorListener)

Try adding this to your build settings:

[lua]

build =

{
neverStripDebugInfo = true
}

[/lua]

Tanks!!

Try adding this to your build settings:

[lua]

build =

{
neverStripDebugInfo = true
}

[/lua]

Tanks!!