This site permanently moved to
https://droidscript.github.io
. Please update links accordingly.
You are being forwarded automatically in 3...
[stay here]
Back
SetOnDebug
Hello World
Define a callback function for debug messages.
app.SetOnDebug(
callback
)
See also:
Debug
,
SetDebug
Example - OnDebug
click to expand contents
function
OnStart
(
)
{
app
.
SetOnDebug
(
OnDebug
)
;
app
.
Debug
(
"app started"
)
;
}
function
OnDebug
(
msg
)
{
app
.
SetDebug
(
)
;
app
.
Alert
(
msg
,
"Received debug message:"
)
;
app
.
SetDebug
(
true
)
;
}
Copy
Copy All
Run
function
()
loading