Re: $_GET vars dropped?

From: Date: Sun, 19 Apr 2020 16:48:29 +0000
Subject: Re: $_GET vars dropped?
References: 1 2 3  Groups: php.general php.general 
Request: Send a blank email to php-general+get-327100@lists.php.net to get a copy of this message
> On Apr 19, 2020, at 8:34 AM, Richard <inbound-lists-php@listmail.innovate.net> wrote: > > > >> Date: Saturday, April 18, 2020 22:20:25 -0700 >> From: Jeffry Killen <jekillen@prodigy.net> >> >> I did manage to solve this issue. >> >> It was one of the hardest issues I have had to >> deal with and I am not sure what exactly solved >> it. >> >> I did change the submission method to POST >> and had to chase through a lot of javascript to >> make sure all those ducks were in a row. >> >> I finally got it to work as expected. >> >> But not having any indication of why something >> is not working is the hardest, considering everything >> just before the apparent problem is working correctly. >> > > I have always found that a critical part of programming and debugging > is to place "debug" statements strategically throughout my code. That > way I can know exactly what various values are at different points > and can quickly spot when something isn't as expected. > > My style is: > > if ($debug > N) { > echo <tag & variable> > ... > } > > where I use different values for N to be able to easily turn > debugging on and off by section or verboseness - based on the value > of $debug that I set. > > This takes a lot of the guesswork out of debugging things. Thank you for your thoughts; I do have a sampling module that I can place at strategic locations in code. It writes selected variable values to a text file. It is useful in debugging async request processing because using echo or print is mostly useless in that situation. JK

« previous php.general (#327100) next »