debugDo

executes a list of statements with additional debug information when in the debugger.

# Metadata

Platforms: desktop, server OS: mac, windows, linux Introduced: 1.0 Security:

# Syntax

debugDo statementList

# Params

- statementList : A LiveCode statement, a container with one or more statements, or a string that evaluates to a statement.

# Examples

debugDo "beep"

debugDo commandsList

# Description

The debugDo command is used by LiveCode's message box and debugger.

Normally, you should use the do command; consider using debugDo only if you are writing a debugger or similar utility, or if you need to debug the statement sent by a do command.

When the debugger is active, you can use debugDo to access local variables using the message box. If you enter a debugDo statement into the message box, and the statement refers to a local variable, the variable value is the current value in the handler that the debugger is execute. This capability is useful if you want to track the current value of a variable in a handler you're debug.

>*Important:* The details of this command may change in future > releases.

# Tags

# See

- **keyword:** message box - **property:** traceReturn, traceStack, traceDelay - **command:** send, do - **function:** value - **glossary:** variable, handler, execute, statement, local variable, debugger, debug, command