DBGp::Client::AnyEvent - AnyEvent-based client for the DBGp debugger protocol
$connected = AnyEvent->condvar; $listener = DBGp::Client::AnyEvent::Listener->new( port => 9000, on_connection => sub { $connected->send($_[0]) }, ); $listener->listen; $client = $connected->recv; $client->on_stream(sub { printf "Output from process (%s)\n---\n%s\n---\n", $_[0]->type, $_[0]->content; }); $wait_res = $client->send_command( undef, # no callback 'breakpoint_set', '-t', 'conditional', '-f', 'file:///path/to/file.pl', '-n', $line, '--', encode_base64("$command; 0"), ); $res = $wait_res->recv; die $res->message if $res->is_error; # send and receive other commands
A thin AnyEvent wrapper on top of DBGp::Client.
Mattia Barbon <mbarbon@cpan.org>
Copyright (c) 2016 Mattia Barbon. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install DBGp::Client::AnyEvent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBGp::Client::AnyEvent
CPAN shell
perl -MCPAN -e shell install DBGp::Client::AnyEvent
For more information on module installation, please visit the detailed CPAN module installation guide.