RE: $_GET vars dropped?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> Date: Saturday, April 18, 2020 22:20:25 -0700
> From: Jeffry Killen <jekillen@xxxxxxxxxxx>
> 
> 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.



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux