sq_setdebughook

Squirrel 3.0

sq_setdebughook

void sq_setdebughook(HSQUIRRELVM v);

pops a closure from the stack an sets it as debug hook. When a debug hook is set it overrides any previously set native or non native hooks. if the hook is null the debug hook will be disabled.

parameters:
HSQUIRRELVM v

the target VM

remarks:

In order to receive a 'per line' callback, is necessary to compile the scripts with the line informations. Without line informations activated, only the 'call/return' callbacks will be invoked.