Run without debugging |
Veteran
|
The DBG Wizard is your friend See new-dbg-wizard-can-help-you-setup-remote-debugging-t3116.html for details.
|
||||||||||||
_________________ |
|
The Wizard didnt answer my question.
I use the wizard a lot.I have the Debugger Running. But There are times I DONT want to use it for Every Page. Thats why there is a CTRL F9 Also(I thought). |
||||||||||||
|
Guru master
|
I've said it a bunch of times already, I think the easiest way to accomplish things like that is the DebugBreak ( ); function
Add it where you want the execution to halt, works awesome. Don't forget to delete the lines again afterwards though, on a server without the debug extension it will result in a fatal error |
||||||||||||
|
|
Are you saying "Run" Doesn't work correctly?
|
||||||||||||
|
Veteran
|
@Ampeloso: Run and Debug are two totally separate of invoking your pages. I use session debugging with breakpoints set only in those pages that I want to break. Pages with no breakpoints are still debugged, but they do not pause anywhere. This is a bit slower than doing a run (that does no debugging) especially on a remote server, because the script is still evaluated line by line. But it does exactly what you are asking for
@Blizz: Compared to a simple mouse-click to set a breakpoint, I find it cumbersome to enter a line DebugBreak(). However, I am using DebugBreak() with great success in debugging situations where the script is called by a 3rd party, e.g. a PayPal callback |
||||||||||||||||
_________________ |
|
But why do I get a Debug error when I'm just trying to Run?
|
||||||||||||
|
Guru master
|
Me too, that's why I've added a replacement for db into DebugBreak (); |
||||||||||||||
|
Veteran
|
I suspect the DBG cookie is still set, thereby triggering a debug session whenever your run the page. Using the DBG toolbar in Firefox, there is a Kill debug session command. Using the IE toolbaar, I think the equivalent is toggling the Debug session command. |
||||||||||||||
_________________ |
Site Admin
|
Normally, if you have debugbreak in your code or DBGSESSID cookie is not dropped, IDE starts debugger even that you pressed Run Without Debugger... Please let me see what debugger or IDE showed in the errorbox and browser. |
||||||||||||||
_________________ The PHP IDE team |
|
DBG 3.2.10
Failed to start DBG session Reason: connection to the client address 128.112.84.122:7869 is not allowed Not sure what it means? Visit http://www.nusphere.com/dbg/ for troubleshooting. Debugger request: " ;d=1,p=0" Request found in: "$_COOKIE['DBGSESSID']" Target PHP version: "5.2.x" Server API: "Apache 2.0 Handler" Extensions API: "220060519" Modules API: "20060613" PHP API: "20041225" |
||||||||||||
|
Site Admin
|
it means that you have DBGSESSID cookie. In this case IDE is supposed to start debug session, but your IP address is not allowed to do so:
|
||||||||||||||||
_________________ The PHP IDE team |
Run without debugging |
|
||
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