++ed by:
DBR MMCLERIC PERLANCAR ANDREFS LLAP

31 PAUSE users
16 non-PAUSE users.

Anthony Brummett

NAME

Devel::hdb::App::WatchPoint - Get and set watchpoints

DESCRIPTION

Watchpoints are perl code snippets run just before executable statements in the debugged program. If the expression's value changes, then the debugger will stop before that program statement is executed, and the 'events' list of the next status report will contain a "watchpoint" event reporting where the debugged program was immediately before the changed was detected.

The value is considered changed if the value's length changes, or of any of the values changes when evaluated as strings. It does not do a deep comparison of contained values.

These code snippets are run in list context in the context of the debugged program and have access to any of its variables, lexical included.

Routes

GET /watchpoints

Get a list of all the currently set watchpoint expressions.

Returns 200 and a JSON-encoded array containing hashes with these keys: expr => The Perl expression href => A URL you can use to delete it

PUT /watchpoints/<expr>

Create a watchpoint.

It responds 201.

GET /watchpoints/<expr>

Returns 200 and a JSON-encoded hash with these keys: expr => The Perl expression href => A URL you can use to delete it

Returns 404 if there is no watchpoint with that expression.

DELETE /watchpoints/<expr>

Delete the given watchpoint. Returns 204 if successful. Returns 404 if there is no watchpoint with that expr.

SEE ALSO

Devel::hdb

AUTHOR

Anthony Brummett <brummett@cpan.org>

COPYRIGHT

Copyright 2014, Anthony Brummett. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.