Devel::hdb::App::WatchPoint - Get and set watchpoints
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.
- 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.
Anthony Brummett <firstname.lastname@example.org>
Copyright 2014, Anthony Brummett. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.