debug
Debugging 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.
<stdin> -> debug -> <stdout>
debug: boolean -> <stdout>
debug -> <stdout>
Return debugging information on the previous function:
» echo: "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"
}
}
Enable or disable debug mode:
» debug: on
true
» debug: off
false
Output whether debug mode is enabled or disabled:
» debug
false
When 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 false
It 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
runtime
: Returns runtime information on the internal state of murextest
: murex's test framework - define tests, run tests and debug shell scriptsThis 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 Thu May 26 22:49:43 UTC 2022 against commit 59e27bb59e27bb1013043fc4a940cf9a2767c63f31dad2c.
Current version is 2.8.2100 which has been verified against 15889 tests cases.