Question: Passing parameter through multiple procedures

The following code is attempting to pass 'debug' through 2 procedures

p1 := proc(a, b, {debug::truefalse := false}) print("p1", debug); a + b; end proc;
p2 := proc(a, b, {debug::truefalse := false}) print("p2", debug); p1(a, b, 'debug' = true); end proc;
p2(1, 2, 'debug' = true);

The result I get is 
 

                           "p2", true

                          "p1", false

                               3

How can I get the value of debug in my call statement to p2 to be passed to p1?

Thanks

Please Wait...