| View previous topic :: View next topic |
| Author |
Message |
Chorry
Joined: 11 Jan 2006 Posts: 1 Location: Russia
|
Posted: Wed Jan 11, 2006 5:27 pm Post subject: Debugging? |
|
|
Is there any kind of debugging tool for new developers?
I mean, it's really hard sometimes to catch a bug in a fresh written php-gtk2 app without any error report (or at least i haven't found any yet). So far i still have to guess whether i forgot to put a comma or to declare a class. Quite annoying thing, have to say :/ |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Wed Jan 11, 2006 7:33 pm Post subject: Re: Debugging? |
|
|
| Chorry wrote: | | Is there any kind of debugging tool for new developers? |
You have to look for php debuggers in general; there is none specifically for php-gtk. And I haven't used any until now. Zend Studio has an integrated one; but I don't know if they already shiip php 5.1.1 that is required by php-gtk2. |
|
| Back to top |
|
 |
ron_t
Joined: 11 Dec 2005 Posts: 78 Location: Gatineau, Quebec
|
Posted: Thu Jan 12, 2006 2:13 am Post subject: Re: Debugging? |
|
|
| Chorry wrote: | Is there any kind of debugging tool for new developers?
I mean, it's really hard sometimes to catch a bug in a fresh written php-gtk2 app without any error report (or at least i haven't found any yet). So far i still have to guess whether i forgot to put a comma or to declare a class. Quite annoying thing, have to say :/ |
Try running your scripts with the command-line version of PHP (php.exe rather than php-win.exe). You'll get errors and warnings in the command window.
Also, if you use the Crimson Editor (www.crimsoneditor.com) you can place commands in the Tools menu to pass your scripts to whichever php interpreter you wish. Makes life a little easier.
Oh, and Crimson is free.
-Ron T. |
|
| Back to top |
|
 |
Osiris
Joined: 17 Dec 2005 Posts: 65
|
Posted: Fri Jan 13, 2006 5:40 pm Post subject: |
|
|
Hello,
maybe you will try xdebug.
Ok, is beta at this time for php 5.1.1+, but it may be a good debugger.
I've used xdebug for webapplications and I think, is also usable for php-gtk2 (not tested until now, maybe next week I integrate this debugger into my app, to find errors )
Greetings
Christian |
|
| Back to top |
|
 |
ron_t
Joined: 11 Dec 2005 Posts: 78 Location: Gatineau, Quebec
|
Posted: Fri Jan 13, 2006 6:48 pm Post subject: |
|
|
| Osiris wrote: | Hello,
maybe you will try xdebug.
Ok, is beta at this time for php 5.1.1+, but it may be a good debugger.
I've used xdebug for webapplications and I think, is also usable for php-gtk2 (not tested until now, maybe next week I integrate this debugger into my app, to find errors )
|
Thanks for the suggestion, Christian. I'll look into it.
-Ron T. |
|
| Back to top |
|
 |
|