where - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Debugging : where

where

displays the stack of procedure activations

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

where(numLevels)

Parameters

numLevels

-

(optional) number of activation levels to display

Description

• 

The where function displays the stack of procedure activations. Starting at the top level, it shows the statement being executed, and the actual parameters passed to the called procedure.

• 

If numLevels is specified, only that many bottommost activations are displayed.

• 

The where function is generally called from within a procedure for debugging purposes. The intent is to be able to determine from where a procedure is being called.

• 

The debugger has a where command which is analogous to the Maple where function, except that it can be invoked interactively by the user from the debugger command line.

Examples

where

Currently at TopLevel.

f := proc(x) g(args) end proc:

g := proc(x) h(args) end proc:

h := proc(x) j(args) end proc:

j := proc(x) where(args) end proc:

f

TopLevel: f()
        []
f: g(args)
        []
g: h(args)
        []
h: j(args)
        []
Currently in j.

f3

g: h(args)
        [3]
h: j(args)
        [3]
Currently in j.

See Also

debugger

showstat

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam