debug problem

Problems with the Windows version of XAMPP, questions, comments, and anything related.

debug problem

Postby yoni101kessler » 01. September 2011 18:25

hello, im using eclipse dpt with zend debugger and xampp to write in php and test it on web,
and when i'm running the page on the web localhost im getting all kinds of notices such as "Notice: Constant GLOBAL_PATH already defined in C:\xampp\htdocs\webs\mall1\Globals.php on line 11" or "Notice: Use of undefined constant genderId - assumed 'genderId' in C:\xampp\htdocs\webs\mall1\DataLogic.php on line 26
Duplicate entry '0' for key 'PRIMARY'Problam with MYSQL"
and only after these comes my page,
well, why is this on the web page instead of on the eclipse debug output or something..???

thank u!
yoni101kessler
 
Posts: 8
Joined: 30. August 2011 13:04

Re: debug problem

Postby Altrea » 01. September 2011 18:45

Thats depending on your error reporting level for the zend debugger.
please check error_reporting and display_errors values in your php.ini file
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11933
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: debug problem

Postby yoni101kessler » 01. September 2011 19:28

ok, so this is it:

; error_reporting
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED

; display_errors
; Default Value: On
; Development Value: On
; Production Value: Off

; display_startup_errors
; Default Value: Off
; Development Value: On
; Production Value: Off
yoni101kessler
 
Posts: 8
Joined: 30. August 2011 13:04

Re: debug problem

Postby Altrea » 01. September 2011 20:01

thats just the commentary block for some example values.
the correct setting is some lines down
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11933
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: debug problem

Postby yoni101kessler » 02. September 2011 11:41

ok... maybe this:

; http://php.net/error-reporting
error_reporting = E_ALL | E_STRICT

; Eval the expression with current error_reporting(). Set to true if you want
; error_reporting(0) around the eval().
; http://php.net/assert.quiet-eval
;assert.quiet_eval = 0


; http://php.net/display-errors
display_errors = On

; The display of errors which occur during PHP's startup sequence are handled
; separately from display_errors. PHP's default behavior is to suppress those
; errors from clients. Turning the display of startup errors on can be useful in
; debugging configuration problems. But, it's strongly recommended that you
; leave this setting off on production servers.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://php.net/display-startup-errors
display_startup_errors = On

thats it?
yoni101kessler
 
Posts: 8
Joined: 30. August 2011 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 178 guests