summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-03-20 16:55:10 -0600
committerKarl Williamson <khw@cpan.org>2021-03-20 17:09:17 -0600
commit42209d0732b775a9574ab375503172fd7874348e (patch)
tree79411437531daabe4597bca47ed865cd7596c9d6
parentd98b8db7f7f9a699c6e258ddaa187563ab861ff9 (diff)
downloadperl-42209d0732b775a9574ab375503172fd7874348e.tar.gz
perldelta for DEBUG_PRE_STMTS, DEBUG_POST_STMTS
-rw-r--r--pod/perldelta.pod11
1 files changed, 11 insertions, 0 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index 23556c909b..8f2611ed64 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -350,6 +350,17 @@ A set of cop_hints_exists_{pv,pvn,pvs,sv} functions was added, to support checki
for the existence of keys in the hints hash of a specific cop without needing to
create a mortal copy of said value.
+=item *
+
+An aid has been added for using the C<DEBUG> macros when debugging XS or
+C code. The comments in F<perl.h> describe C<DEBUG_PRE_STMTS> and
+C<DEBUG_POST_STMTS>. which you can C<#define> to do things like save and
+restore C<errno>, in case the C<DEBUG> calls are interfering with that,
+or to display timestamps, or which thread it's coming from, or the
+location of the call, or whatever. You can make a quick hack to help
+you track something down without having to edit individual C<DEBUG>
+calls.
+
=back