Click here to Skip to main content
15,889,452 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a PHP code which run VPS Server on the Internet. My PHP code use socket to communicate with client. Now, I want to debug that PHP script to check whether it works fine or not. What tools can i use ? or are there another method?
Can anyone help me?
Thanks

What I have tried:

I am newbie in PHP so i don't know how to complement it.
Posted
Updated 1-Apr-17 2:41am

1 solution

Quote:
Now, I want to debug that PHP script to check whether it works fine or not.

To debug, the tool is debugger.

When you don't understand what your code is doing or why it does what it does, the answer is debugger.
Use the debugger to see what your code is doing. Just set a breakpoint and see your code performing, the debugger allow you to execute lines 1 by 1 and to inspect variables as it execute, it is an incredible learning tool.
The debugger is here to show you what your code is doing and your task is to compare with what it should do.
There is no magic in the debugger, it don't find bugs, it just help you to. When the code don't do what is expected, you are close to a bug.

phpdbg | php debugger[^]
Debugging techniques for PHP programmers[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900