We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a0ec64 commit 8b5e270Copy full SHA for 8b5e270
diff-so-fancy
@@ -1086,4 +1086,21 @@ sub debug_log {
1086
return 1;
1087
}
1088
1089
+# Enable k() and kd() if there is a DSF_DEBUG environment variable
1090
+BEGIN {
1091
+ if ($ENV{"DSF_DEBUG"}) {
1092
+ require Data::Dump::Color;
1093
+ *k = sub { Data::Dump::Color::dd(@_) };
1094
+ *kd = sub {
1095
+ k(@_);
1096
+
1097
+ printf("Died at %2\$s line #%3\$s\n",caller());
1098
+ exit(15);
1099
+ }
1100
+ } else {
1101
+ *k = sub {};
1102
+ *kd = sub {};
1103
1104
+}
1105
1106
# vim: tabstop=4 shiftwidth=4 noexpandtab autoindent softtabstop=4
0 commit comments