NAME
Devel::RemoteTrace - Attachable call trace of perl scripts
SYNOPSIS
$ perl -d:RemoteTrace your-script
or
$ perl -d:RemoteTrace=:trace your-script
or
use Devel::RemoteTrace;
DESCRIPTION
This module implements a perl debugger that sends a call trace of the debugged perl script to a remote destination via UDP. The default is to send to localhost:9999.
By using UDP the debug process doesn't have to care aboput if any body is listening. It just sends the trace messages.
Tracing is enabled and disabled bysending the traced process ans SIGUSR2. If the module is called with ':trace' as argument tracing is enabled from the beginning
ENVIRONMENT
RemoteTrace uses the followin environment variables:
- DEBUG_ADDR
- DEBUG_PORT
-
The hostname and port to send the call trace to.
BUGS, FEATURES, AND OTHER ISSUES
Using this on untrusted networks might leak security related information
Due to the nature of UDP there is no guarantee that the receiver gets all function calls. This could be "fixed" by adding a sequence number.
AUTHOR
Peter Makholm, <peter at makholm.net>
COPYRIGHT & LICENSE
Copyright 2009 Peter Makholm, all rights reserved.
This software is released under the MIT license cited below.
The "MIT" License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.