Skip to main content

Debugging (zeysdk run)

Execute a script asset on the ZeyOS platform and display execution results.

zeysdk run <ASSET_CLASS>/<FILENAME> [options]

Parameters

ParameterDescriptionRequiredExample
ASSET_CLASSAsset type (services, resources, weblets)services
FILENAMEScript file to executedaily-backup.ixml

Options

OptionDescriptionDefault
--verboseShow detailed execution progressfalse
Execution Results

The command outputs detailed execution metrics:

Execution Results:
LOAD TIME: 1.2 ms
EXECUTION TIME: 45.3 ms
MEMORY USAGE: 2.5 MB
OUTPUT SIZE: 128 KB
ENGINE: iXML
OUTPUT: Operation completed successfully
DEBUG OUTPUT: Detailed execution trace...
MetricDescriptionFormat
LOAD TIMEScript loading durationmilliseconds/seconds
EXECUTION TIMEProcessing durationmilliseconds/seconds
MEMORY USAGEPeak memory consumptionBytes/KB/MB/GB
OUTPUT SIZEResult data sizeBytes/KB/MB/GB
ENGINEExecution engine versionString
OUTPUTScript execution resultString
DEBUG OUTPUTDebug informationString
ERRORError message (if failed)String

Examples

# Run a service script
zeysdk run services/backup.ixml --verbose
# Output:
# Input validation completed.
# Loading sync info and package info.
# Making REST call to run file on the server.
# Run completed successfully.
# Execution Results:
# LOAD TIME: 0.8 ms
# EXECUTION TIME: 123.4 ms
# MEMORY USAGE: 1.2 MB
# OUTPUT: Backup completed successfully

# Run a weblet script
zeysdk run weblets/dashboard.zymba
# Output:
# Execution Results:
# LOAD TIME: 1.1 ms
# EXECUTION TIME: 67.2 ms
# MEMORY USAGE: 3.4 MB
# OUTPUT: Dashboard rendered successfully

Error Handling

ErrorDescriptionResolution
Invalid asset classWrong type specifiedUse correct asset class
Missing sync.jsonNo sync fileRun zeysdk link first
Invalid sync.jsonMissing id/urlRelink instance
Missing assetFile not foundCheck file path
Invalid script typeWrong extensionUse .ixml or .zymba
Authentication errorToken expiredAuto-relinks
Execution errorRuntime errorCheck error output