Debugging an "externally called" PHP on the server |
Guru master
|
You can use the DebugBreak() statement in your server code, which will cause DBG to be activated. DebugBreak() has a variety of ways of being used but most importantly if DBG does not know what the client address of your PhpED is, then DebugBreak must be told it DebugBreak('1@debugger-client-address')
Have a look at http://forum.nusphere.com/remote-debug-when-server-receives-a-request-t8269.html?highlight=debugbreak |
||||||||||||
|
|
Thank you team so much for this feature. I'm testing PHPed 9 and this feature is amazing.
To those who are reading ... if you have a php file that you want to debug only when it gets called by something or someone else then place DebugBreak('1@X.X.X.X'); at the top of the php file and it will send debug info to that ip address. Amazing! Just make sure you have PHPed up and running at that IP address. You have to make sure firewalls, etc are all clear, naturally. |
||||||||||||
|
Site Admin
|
note that sometimes you can't use IP address of target machine because it is in a different network behind NAT. For example you work from your home with public server. Server won't be able to connect to the IDE running on your home desktop. In this case you have to use either NAT mapping (see router settings) or uPnP or ssh tunnel. In latter case you need ssh service on the server. Ssh client is built into the IDE. With tunnel you'll use localhost or ::1 or 127.0.0.1.
|
||||||||||||
_________________ The PHP IDE team |
Debugging an "externally called" PHP on the server |
|
||
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