For version 0.7.0.
To top.  Up: ..Shapes

..Shapes..Debug


Core bindings
C—bye •db locate newTimer C—resume sourceof C—top_repl

Didn't get the result you expected? Maybe it's time to set a break point or add some debug prints. This is where you find the tools.
Sections:    Source code reflection    Profiling    Interactive mode

Source code reflection

locate
::§Value §Value
Dynamic references:none
Mutates the value in order to associate it with the abstract syntax tree node of the argument passed to this function.
See also:sourceof
sourceof
::§Value §String
Dynamic references:none
Returns the source code string determined by the abstract syntax tree node associated with the argument. The value needs to be properly prepared using locate.

Profiling

newTimer
This is a hot value.
Spawns:§•Float

Interactive mode

The escape continuations in Shapes are not treated as dynamic variables, but they are nevertheless dynamically bound, which is why they are listed among the global dynamic variables. In the non-interactive mode of the compiler, there is only one globally available escape continuation, but there are some more available in the interactive mode.
See ../syntax.html for more information on escape continuations in general.
C—bye
Purpose:
Quit compiler.
Expects type: ( §Integer §Symbol )
Default binding:
Described in ../interactive.html. Only available in interactive mode.
C—top_repl
Purpose:
The read-evaluate-print loop of the interactive mode.
Expects type: §Value
Default binding:
Described in ../interactive.html. Only available in interactive mode.
C—resume
Purpose:
Resume program after break during interactive debugging.
Expects type:depends on context
Default binding:
Described in ../interactive.html. Only available in debug context in interactive mode.
•db
Type:§•Debugger
There is no global state. This piece of documentation is just here to guide readers to the documentation in ../interactive.html.
See also:
Get Shapes at SourceForge.net. Fast, secure and Free Open Source software downloads