[dokuwiki] Re: $_SESSION and DokuWiki debugging

Peter Kehl wrote:
Hello,

while integrating DokuWiki with internal portal, I need to debug some
interactions. I wanted to use die() in DokuWiki code whenever
$_SESSION['HAPPY_DEBUG'] is set, which would serve as a debug
indicator flag. (A separate php script is used to set/unset
$_SESSION['HAPPY_DEBUG'].)

It looks that DokuWiki never has $_SESSION['HAPPY_DEBUG'] set. Does it
filter out custom entries in $_SESSION? If so, what's the easier way
to 'debug' DokuWiki - i.e. to trace pageflow and control flow, so that
one could figure out the interactions?

Thank you for DokuWiki.

- Peter Kehl
DokuWiki closes the session after its initialisation. You can reopen the session, or comment out the session closing code. Do you need to use a session variable for this?

I use xdebug, every warning/notice/error, including ones I trigger myself, is reported with a function nesting sequence (name, file, line number) to arrive at the point of the error.

Cheers,

Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: