Page 1 of 1

debug problem

PostPosted: 01. September 2011 18:25
by yoni101kessler
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!

Re: debug problem

PostPosted: 01. September 2011 18:45
by Altrea
Thats depending on your error reporting level for the zend debugger.
please check error_reporting and display_errors values in your php.ini file

Re: debug problem

PostPosted: 01. September 2011 19:28
by yoni101kessler
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

Re: debug problem

PostPosted: 01. September 2011 20:01
by Altrea
thats just the commentary block for some example values.
the correct setting is some lines down

Re: debug problem

PostPosted: 02. September 2011 11:41
by yoni101kessler
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?