Using the Remote Debugger
Create a standalone application
The first step when using the remote debugger is to create a standalone application with the remote debugger included.
If you are using the 'Test' button to run your app from the IDE, the remote debugger will be included in the app automatically.
Otherwise, if you are saving a standalone, simply include the remote debugger in your standalone application using the Inclusions pane of the standalone settings stack.
When the standalone launches, if there is an instance of the IDE running, it will ask if you would like to start a remote debugging session. Simply click yes to activate the remote debugger.
Note: Starting from LiveCode 9.0 DP-11, the dialog asking you if you would like to start a remote debugging session no longer appears. Instead, a green arrow is shown in the Test button, to indicate that a remote debugging session has started:
The standalone you are debugging does not have to be running on the same platform as your IDE. You can debug LiveCode applications running on iPhone / iPad simulators and devices, Android emulators and devices, and virtual machines.
Debug your application
When the remote debugger is active, breakpoints in a standalone application's scripts will trigger the debugger in the IDE. The script editor opens, and you can control execution in the standalone using the standard step out/over/in, stop and play buttons.
You can hover over variables in the script editor to view their values,
see all the variables in the current debug context in the variable viewer pane,
and output the values of variables to the message box using
The remote debugger will route any
put commands without a target into the IDE message box. So the
put command can be used for logging purposes, and everything that that is logged in this way will be output in the message box field.
Add your comment