Difference between revisions of "MC-Basic:BACKTRACE$"
| (12 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| + | {{Languages|MC-Basic:BACKTRACE$}} | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
| Line 4: | Line 5: | ||
|SYNTAX= | |SYNTAX= | ||
| − | BackTrace$ '' | + | BackTrace$ <''task name string''> |
|AVAILABILITY= | |AVAILABILITY= | ||
| − | Version 4.5.3 | + | Since Version 4.5.3 |
|DESCRIPTION= | |DESCRIPTION= | ||
| − | + | Prints the function stack of the task, including function or subroutine name. | |
| − | {{Note|BackTrace can be | + | {{Note|BackTrace can only be executed for a task that is not in the running state.}} |
|TYPE= | |TYPE= | ||
| − | '' | + | <''task name string''>: string |
|RANGE= | |RANGE= | ||
| − | '' | + | <''task name string''>: name of a task that is loaded in memory |
|UNITS= | |UNITS= | ||
| Line 30: | Line 31: | ||
|LIMITATIONS= | |LIMITATIONS= | ||
| − | Read | + | *Read only. |
| + | *Task must be loaded in memory. | ||
|EXAMPLE= | |EXAMPLE= | ||
BackTrace “XYRot.prg” | BackTrace “XYRot.prg” | ||
| − | |||
| − | |||
Common shared TaskName as string = “XYRot.prg” | Common shared TaskName as string = “XYRot.prg” | ||
| Line 42: | Line 42: | ||
|SEE ALSO= | |SEE ALSO= | ||
| − | * [[ | + | * [[MC-Basic:BACKTRACE|BACKTRACE]] |
| − | * [[ | + | * [[MC-Basic:CONTINUETASK$|CONTINUETASK$]] |
| − | * [[ | + | * [[MC-Basic:KILLTASK$|KILLTASK$]] |
| − | * [[ | + | * [[MC-Basic:LOAD$|LOAD$]] |
| − | * [[ | + | * [[MC-Basic:STARTTASK$|STARTTASK$]] |
| − | [[Category | + | [[Category:MC-Basic:Debug Tools|BACKTRACE$]] |
}} | }} | ||
Latest revision as of 06:05, 24 April 2017
| Language: | English • 中文(简体) |
|---|
Prints the function stack of the task, including function or subroutine name.
| NOTE | |
| BackTrace can only be executed for a task that is not in the running state. |
Syntax
BackTrace$ <task name string>
Availability
Since Version 4.5.3
Type
<task name string>: string
Range
<task name string>: name of a task that is loaded in memory
Scope
Task or Terminal
Limitations
- Read only.
- Task must be loaded in memory.
Examples
BackTrace “XYRot.prg”
Common shared TaskName as string = “XYRot.prg”
BackTrace$ TaskName