debugDebugging information
debug has two modes: as a function and as a method.
This usage will return debug information about the previous function ran.
This will enable or disable debugging mode.
debug boolean -> <stdout>debug -> <stdout>debug { code-block } -> <stdout><stdin> -> debug -> <stdout>» debug
false
» debug { out "debug mode is now ${debug}" }
debug mode is now true
» debug
false» out "hello, world!" -> debug 
{
    "DataType": {
        "Go": "[]string",
        "Murex": "str"
    },
    "Process": {
        "Context": {
            "Context": 0
        },
        "Stdin": {},
        "Stdout": {},
        "Stderr": {},
        "Parameters": {
            "Params": [
                "hello, world!"
            ],
            "Tokens": [
                [
                    {
                        "Type": 0,
                        "Key": ""
                    }
                ],
                [
                    {
                        "Type": 1,
                        "Key": "hello, world!"
                    }
                ],
                [
                    {
                        "Type": 0,
                        "Key": ""
                    }
                ]
            ]
        },
        "ExitNum": 0,
        "Name": "echo",
        "Id": 3750,
        "Exec": {
            "Pid": 0,
            "Cmd": null,
            "PipeR": null,
            "PipeW": null
        },
        "PromptGoProc": 1,
        "Path": "",
        "IsMethod": false,
        "IsNot": false,
        "NamedPipeOut": "out",
        "NamedPipeErr": "err",
        "NamedPipeTest": "",
        "State": 7,
        "IsBackground": false,
        "LineNumber": 1,
        "ColNumber": 1,
        "RunMode": 0,
        "Config": {},
        "Tests": {
            "Results": null
        },
        "Variables": {},
        "FidTree": [
            0,
            3750
        ],
        "CreationTime": "2019-01-20T00:00:52.167127131Z",
        "StartTime": "2019-01-20T00:00:52.167776212Z"
    }
}» debug on
true
» debug off
falseDebug mode can be either enabled (true) or disabled
(false):
» debug
falseWhen enabling or disabling debug mode, because the parameter is a murex boolean type, it means you can use other boolean terms. eg
# enable debugging
» debug 1
» debug on
» debug yes
» debug true
# disable debugging
» debug 0
» debug off
» debug no
» debug falseIt is also worth noting that the debugging information needs to be
written into the Go source code rather than in Murex’s shell scripting
language. If you require debugging those processes then please use
Murex’s test framework
For testing purposes, you might want to force Murex to crash. You can do this via:
debug panicdebugruntime: Returns runtime information on the internal
state of Murextest: Murex’s test framework - define tests, run tests
and debug shell scriptsThis document was generated from builtins/core/management/debug_doc.yaml.
This site's content is rebuilt automatically from murex's source code after each merge to the master branch. Downloadable murex binaries are also built with the website.
Last built on Fri Oct 24 08:59:31 UTC 2025 against commit e59ab49e59ab49e1628d8546d2ad8ce5eb1150445f6a940.
Current version is 7.1.4143 (unknown) which has been verified against tests cases.