...

View Full Version : Showing the list of all the functions called, debug_backtrace() doesn't fits me



tirengarfio
04-02-2010, 01:06 AM
Hi,

im trying to debug a symfony app.

I've added a debug_backtrace() calling to this function below. It outputs a list of functions called, but the save() function (that is just before the debug_backtrace() calling) is not that list.. why? any other way to debug that shows more things, in this case the save() calling ?



protected function processForm(sfWebRequest $request, sfForm $form)
{
$form->bind($request->getParameter($form->getName()));

if ($form->isValid())
{

$sf_guard_user = $form->save();

var_dump(debug_backtrace());
die("fsdgsgsdf");

$this->redirect('guardausuario/edit?id='.$sf_guard_user-
>getId());

}
}

Regards

Javi

tirengarfio
04-03-2010, 01:57 PM
Hi again,

i found this bug issue that is asking for maybe what i'm looking for:

http://bugs.php.net/bug.php?id=40827

As you can see the response is:


How is that different from a three-line function operating on the result array of debug_backtrace() ?


but i don't what it means or how implement it.

Any help?

Javi

tirengarfio
04-03-2010, 08:39 PM
I've just got my target using



xdebug_start_trace('/tmp/foo');
$usuario = $form->save();
xdebug_stop_trace();

http://www.xdebug.org/docs/all_functions

Javi



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum