Re: [symfony-users] print_r / var_dump debugging.

2010-06-07 Thread Luis Alberto Zarrabeitia
Wow, the feature list looks amazing... I'll take a look at it. Thanks!. On Mon, Jun 7, 2010 at 11:58 AM, Thomas Rabaix wrote: > install xebug, var_dump is smarter > > On Mon, Jun 7, 2010 at 5:43 PM, Pietrino Atzeni > wrote: >> >> Hi, if you need to dump an object as an array, use the ->toArray()

Re: [symfony-users] print_r / var_dump debugging.

2010-06-07 Thread Thomas Rabaix
install xebug, var_dump is smarter On Mon, Jun 7, 2010 at 5:43 PM, Pietrino Atzeni wrote: > Hi, if you need to dump an object as an array, use the ->toArray() method > (assuming you are using Doctrine, though). > > Hope this helps, > Pietro > > > > Hi, >> >> 2010/6/7 Luis Alberto Zarrabeitia: >>

Re: [symfony-users] print_r / var_dump debugging.

2010-06-07 Thread Luis Alberto Zarrabeitia
@Michal >> You can dump variable with var_dump(). >> >> The error appeared because you tried to dump a really large piece of data. >> Thank you, but that's not it. The error message /says/ that, but it can also be caused by a cyclic data structure. (A has a reference to B, and B has a reference t

Re: [symfony-users] print_r / var_dump debugging.

2010-06-07 Thread Pietrino Atzeni
Hi, if you need to dump an object as an array, use the ->toArray() method (assuming you are using Doctrine, though). Hope this helps, Pietro Hi, 2010/6/7 Luis Alberto Zarrabeitia: How can you dump a variable in symphony? I usually use print_r or var_dump when I need to check the values/stru

Re: [symfony-users] print_r / var_dump debugging.

2010-06-07 Thread MichaƂ Piotrowski
Hi, 2010/6/7 Luis Alberto Zarrabeitia : > How can you dump a variable in symphony? I usually use print_r or > var_dump when I need to check the values/structure of a variable at > some point during the execution, but it seems that symphony objects > have some kind of circular references, because t

[symfony-users] print_r / var_dump debugging.

2010-06-07 Thread Luis Alberto Zarrabeitia
How can you dump a variable in symphony? I usually use print_r or var_dump when I need to check the values/structure of a variable at some point during the execution, but it seems that symphony objects have some kind of circular references, because trying to use these functions produces the error: