Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #7782

Re: Printing out or displaying for debugging

From Simon <bad@example.com>
Newsgroups comp.lang.php
Subject Re: Printing out or displaying for debugging
Date 2012-12-12 08:18 +0200
Message-ID <aiqlthF95g5U1@mid.individual.net> (permalink)
References <311acfc8-1a24-4cd6-93aa-3bfc1407e840@b16g2000vbh.googlegroups.com> <ka8i8n$tnf$1@dont-email.me>

Show all headers | View raw


>
> echo "<!--";
> vardump($var)
> printr($var)
> etc...
> echo "-->";
>
> then comment out/remove that code when done. Just 'View Source...' to
> see it.

Unless $var contains html code, (maybe what the OP is trying to debug in 
the first place), and that could end up causing a whole lot of mess, 
(making it more difficult to debug).

A local site, is a far better option.
I prefer to install php+Apache manually but that's just a mater of choice.

Otherwise, a carbon copy of the page with the debug code on another page 
is a better/safe/prettier? option.

Simon

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Printing out or displaying for debugging C <wrong.address.1@gmail.com> - 2012-12-11 07:59 -0800
  Re: Printing out or displaying for debugging The Natural Philosopher <tnp@invalid.invalid> - 2012-12-11 16:05 +0000
    Re: Printing out or displaying for debugging wrong.address.1@gmail.com - 2012-12-11 08:59 -0800
      Re: Printing out or displaying for debugging Denis McMahon <denismfmcmahon@gmail.com> - 2012-12-11 20:39 +0000
  Re: Printing out or displaying for debugging Salvatore <sal@yojimbo.hack.invalid> - 2012-12-11 16:24 +0000
  Re: Printing out or displaying for debugging Martin Leese <please@see.Web.for.e-mail.INVALID> - 2012-12-11 10:16 -0700
    Re: Printing out or displaying for debugging The Natural Philosopher <tnp@invalid.invalid> - 2012-12-11 18:18 +0000
  Re: Printing out or displaying for debugging Shake <QUITAESTO@QUITAESTO.NOES> - 2012-12-11 18:31 +0100
  Re: Printing out or displaying for debugging Jerry Stuckle <jstucklex@attglobal.net> - 2012-12-11 12:32 -0500
    Re: Printing out or displaying for debugging Robert Heller <heller@deepsoft.com> - 2012-12-11 13:04 -0600
  Re: Printing out or displaying for debugging Martin Leese <please@see.Web.for.e-mail.INVALID> - 2012-12-11 10:52 -0700
  Re: Printing out or displaying for debugging Robert Heller <heller@deepsoft.com> - 2012-12-11 13:04 -0600
    Re: Printing out or displaying for debugging wrong.address.1@gmail.com - 2012-12-13 05:29 -0800
  Re: Printing out or displaying for debugging SwissCheese <swisscheese@cfl.rr.com> - 2012-12-11 19:14 -0500
    Re: Printing out or displaying for debugging Simon <bad@example.com> - 2012-12-12 08:18 +0200

csiph-web