projects
/
working
/
OpenSRF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bda043
)
Add debugger breakpoints in OpenSRF::Server::Child::run().
collab/dyrcona/debug
author
Jason Stephenson
<jstephenson@mvlc.org>
Wed, 19 Jun 2013 17:22:53 +0000
(13:22 -0400)
committer
Jason Stephenson
<jstephenson@mvlc.org>
Wed, 19 Jun 2013 17:22:53 +0000
(13:22 -0400)
Following directions here:
https://docs.google.com/document/d/1CGMPWG2Pb5_mhnnEzXywfkQTnp8OeCdMivjd9Pap_ow
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
src/perl/lib/OpenSRF/Server.pm
patch
|
blob
|
history
diff --git
a/src/perl/lib/OpenSRF/Server.pm
b/src/perl/lib/OpenSRF/Server.pm
index
d8103b6
..
25969c8
100644
(file)
--- a/
src/perl/lib/OpenSRF/Server.pm
+++ b/
src/perl/lib/OpenSRF/Server.pm
@@
-598,9
+598,14
@@
sub run {
# main child run loop. Ends when this child hits max requests.
while(1) {
+ # Add a debugger breakpoint.
+ $DB::single = 1;
my $data = $self->wait_for_request or next;
+ # Add another debugger breakpoint
+ $DB::single = 1;
+
# Update process name to show activity
my $orig_name = $0;
$0 = "$0*";