Get System Log
get_system_logFetches recent System.DebugLog output from the macOS unified log for a Xojo debug run or built app. Returns labeled raw process entries when no Xojo log lines exist.
Instructions
Returns recent System.DebugLog output of a Xojo app from the macOS unified log (log show): a debug run started by run_project, or a built app. Only lines the Xojo framework logged are returned; when there are none but the process logged something else, up to 200 of those raw entries are returned instead, labelled as such. An empty result almost always means no System.DebugLog call ran, so add one and query again; prefer this over MessageBox for tracing. Needs no IDE.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seconds | No | How far back to look, in seconds. Default 60, max 3600. | |
| process_name | Yes | Exact process name: the app's name plus '.debug' for a debug run (e.g. 'MyApp.debug'), or the app's name for a built app. Letters, digits, spaces, '.', '_' and '-' only. |