NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Is it possible to write to log when running internal.
Veteran

Joined: 30 Nov 2006
Posts: 186
Reply with quote
Hi.

I am doing some xajax developing, and can not debug since the deugger breaks when ever I get into a certain line in the xajax lib.

And since I do not have any page reload I can not write the variables to the screen.
Is it possible to write to the LOG of PHPed when you run the scripts internally in PHPEd or do I have to work something else out.
View user's profileFind all posts by hgrSend private message
Veteran

Joined: 24 Jan 2006
Posts: 311
Reply with quote
What is the problem with the debugger though? You said it breaks- could you please give more details? Thank you very much!
View user's profileFind all posts by yfaktorSend private message
Veteran

Joined: 30 Nov 2006
Posts: 186
Reply with quote
It breaks with a PHP warning, can not remember which but when I run the script without the debugger, I get no warnings.

This warning causes the javascript used for xajax, not to be executed.
Maybe it is just a matter of setting the error levels right for the internal viewer ? (do not display warnings).
View user's profileFind all posts by hgrSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8335
Reply with quote
Right, it's better to keep display_errors = Off, log_errors = On and error_log pointing to a file where php will log errors to.
BTW, with debugger you might run different installation of php and therefore settings were different too. Please check with phpinfo().

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 30 Nov 2006
Posts: 186
Reply with quote
How can I set these values for the internal webserver ?
View user's profileFind all posts by hgrSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8335
Reply with quote
first run phpinfo(), then check path to php.ini displayed in the results, then edit this file Smile

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 30 Nov 2006
Posts: 186
Reply with quote
Thanks.
View user's profileFind all posts by hgrSend private message
Warning continues to pup up in debugger
Veteran

Joined: 30 Nov 2006
Posts: 186
Reply with quote
Hi again.

I have now set, display errors off, and log errors to textfile but when I debug the warnings are popping up in a window.
How can I avoid this.

See an example of a warning below.
View user's profileFind all posts by hgrSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8335
Reply with quote
debugger -> error level.
Set it to 1 or 0.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 30 Nov 2006
Posts: 186
Reply with quote
Once again Thanks.

PHPEd is such a nice editor, I am so looking forward to PHPEd 5 with integrated NuCoder support, and hopefully a licensing system for nucoder.

I am checking the Nusphere website dayly for some positive news Very Happy
View user's profileFind all posts by hgrSend private message
Is it possible to write to log when running internal.
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic