Auto-removing debugbreaks on svn commit |
Veteran
|
I thought if the debugger is not running (no debug session cookie set), debugBreak is ignored? So on a live server, it should do nothing?
|
||||||||||||
|
Site Admin
|
if debugger is not installed on your life server, debugbreak() function _is_ not available and therefore each call to debugbreak will raise error in php.
What ruslanbes suggests is correct -- it's safe to define your own debugbreak if function is not defined, or wrap each call with similar check. BTW did you try regular breakpoints & initiate debugger from the IDE or from the browser's debugger toolbar? In this case you'd not need debugbreak at all. |
||||||||||||
_________________ The PHP IDE team |
|
Wrapping each call has the primary downside that when another dev checkouts your code and suddenly gets a debug-stop it could be really annoying. )
And sometimes it's hard to use other methods (like in iframe or in the middle of the chain of redirects) |
||||||||||||
|
Site Admin
|
why each? Can you add your own wrapper function and call it instead of debugbreak? |
||||||||||||||
_________________ The PHP IDE team |
Auto-removing debugbreaks on svn commit |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by