GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Devel::Events::Generator::SubTrace(3) User Contributed Perl Documentation Devel::Events::Generator::SubTrace(3)

Devel::Events::Generator::SubTrace - generate "executing_line" events using the perl debugger api

version 0.09

        my $g = Devel::Events::Generator::SubTrace->new( handler => $h );

        $g->enable();

        # every subroutine will have two events fired, on entry and exit

        $g->disable();

This Devel::Events generator will fire sub tracing events using "DB::sub", a perl debugger hook.

Only one instance may be enabled at a given time. Use Devel::Events::Handler::Multiplex to deliver events to multiple handlers.

Subroutines inside the Devel::Events namespace or it's children will be skipped.

enter_sub
When the generator is enabled, this event will fire for every subroutine, just before it is executed.

Subroutines in a package starting with "Devel::Events::" will not be reported.

name
The name of the subroutine (or it's "overload::StrVal" if it has none).
code
A code reference to the subroutine.
args
A copy of the arguments list. "\@_" causes segfaults but "[ @_ ]" does not. Bummer ;-)
depth
The current depth of the call stack.
wantarray
The context of the call as given by "wantarray"
leave_sub
Exactly like "enter_sub", but fired just after leaving the subroutine.

All the fields of "enter_sub" are passed.

Additional fields:

ret
The return value of the subroutine.

enable
Enable this generator instance, disabling any other instance of Devel::Events::Generator::SubTrace.
disable
Stop firing events.
enter_sub
Called by "DB::sub". Sends the "enter_sub" event.
leave_sub
Called by "DB::sub". Sends the "leave_sub" event.

perldebguts, Devel::CallTrace, DB, Devel::ebug, perl5db.pl

Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-Events> (or bug-Devel-Events@rt.cpan.org <mailto:bug-Devel-Events@rt.cpan.org>).

XXXX XXX'XX (Yuval Kogman) <nothingmuch@woobling.org>

This software is copyright (c) 2007 by XXXX XXX'XX (Yuval Kogman).

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2018-03-27 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.