This topic is locked

debugging

6/12/2008 7:10:15 AM
PHPRunner General questions
E
echo author

i normally use [codebox]<?php echo "<pre>" . var_dump($_POST) . "</pre>";?> [/codebox] to trace what is being passed from page to page for debugging. what tools are available in phpr? thanks

E
echo author 6/12/2008

never mind. found out how. thanks

K
kinho 3/1/2009

i normally use [codebox]<?php echo "<pre>" . var_dump($_POST) . "</pre>";?> [/codebox] to trace what is being passed from page to page for debugging. what tools are available in phpr? thanks


Hi All,
I meant to ask about 'debugging console', but don't really know how to start a new thread so just ride on this thread.
Question: How can I get a $Smarty debugging console?

  1. I have: set $dDebug variable in include/dbcommon.php file to true;
  2. I add the line: $smarty->debugging = TRUE; at the end of a ListOnLoad code_snippet
    When I run the generated page, I got a PHP error
    quote

    PHP error happenedTechnical information

    Error type 8

    Error description Undefined variable: _debug_start_time

    URL localhost/DemoN/jobs1/output/jobsjobs_list.php?

    Error file C:\DemoN\Jobs1\output\oldlibs\Smarty.class5.php

    Error line 1311

    SQL query select jobsjobs.ID, jobsjobs.Company, jobsjobs.Title, jobsjobs.TypeID, jobsjobs.Description, jobsjobs.HowToApply, jobsjobs.Zip, jobsjobs.City, jobsjobs.`state`, jobsjobs.Country, jobsjobs.Website, jobsjobs.LogoURL, jobsjobs.DateAdded, jobsjobs.Title AS Job, concat(jobsjobs.City, ', ', jobsjobs.`state`, ' ', jobsjobs.Zip) AS Location, jobsjobtype.`Type` AS Category FROM jobsjobs LEFT OUTER JOIN jobsjobtype ON jobsjobs.TypeID = jobsjobtype.ID

    unquote
    What have I done wrong and/or missing in getting the 'Smarty debugging console'?
    Thanks in advance,

    Kin

D
Denton 3/2/2009

Hi All,

I meant to ask about 'debugging console', but don't really know how to start a new thread so just ride on this thread.


Instead of clicking reply, try clicking "new topic"
Den