Help with debugging RESTful web services using Slim Framewor |
Guru master
|
You could add DBGSESSID to your web request URL's but not always convenient.
Possibly you will find the PHP statement DebugBreak() useful. Because the API request may not be identifiable back to a specific computer with the debugger running, you may have to tell DebugBreak() which computer has the debugger:
If you are debugging a service where it might be getting other connections that should not be debugged, you could use something like:
Note: Remember to not allow DebugBreak() to run on code in a live production environment. You can use a variety of methods to stop your debug code from running without having to remove it. There is lots of info in this forum about DebugBreak() and the syntax of the parameter is the same as for DBGSESSID. See http://www.nusphere.com/kb/technicalfaq/faq_dbg_related.htm After DebugBreak() has forced a breakpoint, your IDE breakpoints will also activate. |
||||||||||||||||
|
|
Can't thank you enough for your response. Since I posted this I did the hard yards and yes ... read the bloody manual ... and this answer just rounded it all out for me.
Currently I have WEBSTORM running the front end (HTML/ANGULARJS) and PHPEd running the RESTful stuff on my local test server (127.0.0.1) and it all works together like peas in a pod. I'm sure a lot of PHPEd users would be like me and just thank Nusphere every day for such a fine product. Wish they had a JS environment as well Regards Tony |
||||||||||||
|
Help with debugging RESTful web services using Slim Framewor |
|
||
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