Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2009
    Posts
    43
    Thanks
    2
    Thanked 0 Times in 0 Posts

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

    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 ?

    PHP Code:
    protected function processForm(sfWebRequest $requestsfForm $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

  • #2
    New Coder
    Join Date
    Oct 2009
    Posts
    43
    Thanks
    2
    Thanked 0 Times in 0 Posts
    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

  • #3
    New Coder
    Join Date
    Oct 2009
    Posts
    43
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I've just got my target using

    PHP Code:
    xdebug_start_trace('/tmp/foo');
    $usuario $form->save();
    xdebug_stop_trace(); 
    http://www.xdebug.org/docs/all_functions

    Javi


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •