Stack traces: Difference between revisions
Content added Content deleted
(→{{header|Nim}}: Move Nim entry to the correct place and added output) |
No edit summary |
||
Line 1,188: | Line 1,188: | ||
f[g[1, 2]]</lang> |
f[g[1, 2]]</lang> |
||
Related and similar functions are: Trace, TracePrint, TraceScan,TraceDialog, Monitor, StackInhibit, StackBegin, StackComplete. In the manual look for 'guide/SymbolicExecutionHistory'. |
Related and similar functions are: Trace, TracePrint, TraceScan,TraceDialog, Monitor, StackInhibit, StackBegin, StackComplete. In the manual look for 'guide/SymbolicExecutionHistory'. |
||
=={{header|Nanoquery}}== |
|||
__calls__ contains a list that represents a trace of calls that have been made. |
|||
<lang nanoquery>def print_stack() |
|||
global __calls__ |
|||
println "stack trace:" |
|||
for i in range(len(__calls__) - 2, 0) |
|||
println "\t" + __calls__[i] |
|||
end |
|||
end |
|||
print_stack() |
|||
println |
|||
for i in range(1, 1) |
|||
print_stack() |
|||
end |
|||
println |
|||
println "The program would continue."</lang> |
|||
{{out}} |
|||
<pre>stack trace: |
|||
<global>:10 |
|||
stack trace: |
|||
<for>:1 |
|||
<global>:13 |
|||
The program would continue.</pre> |
|||
=={{header|NetRexx}}== |
=={{header|NetRexx}}== |