/home/jaubrey/webwork//pg_TRUNK/macros/PGinfo.pl

From WeBWorK

Jump to: navigation


NAME

        PGinfo.pl

Provides macros for determining the values of the current context in which the problem is being written.

listVariables

Usage: listVariables();

Prints all variables submitted in the problem form and all variables in the the Problem environment and all of the flag variables in Context(). This is used for debugging and to determine the current context for the problem.

listFormVariables()

        Called by listVariables to print out the input form variables.

listEnvironmentVariables()

        Called by listVariables to print out the environment variables (in %envir).

listContextFlags()

        Called by listVariables to print out context flags for Math Objects.

listContext()

        Usage:  listContext(Context())
        Prints out the contents of the current context hash -- includes flags and much more

pp()

        Usage:  pp(Hash );
                pp(Object);
        Prints out the contents of Hash or the instance variables of Object