NAME
Devel::hdb::App::Breakpoint - Get and set breakpoints
Routes
- GET /breakpoint
-
Get breakpoint information about a particular file and line number. Accepts these parameters: f File name l Line number
Returns a JSON-encoded hash with these keys: filename => File name lineno => Line number condition => Breakpoint condition, or 1 for an unconditional break action => Debugger action condition_inactive => 1 (yes) or undef (no), whether this breakpoint is disabled/inactive action_inactive => 1 (yes) or undef (no), whether this debugger action is disabled/inactive
- POST /breakpoint
-
Set a breakpoint. Accepts these parameters: f File name l Line number c Breakpoint condition. This can be a bit of Perl code to represent a conditional breakpoint, or "1" for an unconditional breakpoint. a Debugger action. This Perl code will be run whenever execution reaches this line. The action is executed before the program line. ci Set to true to make the breakpoint condition inactive, false to clear the setting. ai Set to true to make the debugger action inactive, false to clear the setting.
It responds with the same JSON-encoded hash as GET /breakpoint. If both the condition and action are empty/false (to clear the breakpoint and action), the response will only include the keys 'filename' and 'lineno'.
- GET /breakpoints
-
Request data about all breakpoints. Return a JSON-encoded array. Each item in the array is a hash with the same information returned by GET /breakpoint.
SEE ALSO
Devel::hdb
AUTHOR
Anthony Brummett <brummett@cpan.org>
COPYRIGHT
Copyright 2013, Anthony Brummett. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.