Solved

Is it possible to debug php with zend studio just similar to Visual studio?

Posted on 2012-03-20
3
321 Views
Last Modified: 2012-03-21
Hello

 I am starter for PHP programming.
 I find it is more time consuming for me to do php debug. The zend studio is powerful for debugging php code.
But I can only do the debugging via following scenario:
1. configure the zend studio correctly;
2. start the debugging step by step;
How can I do to meet following scenario:
1. set a breakpoint in php code;
2. start the php page run;
3. Some user data is input into the form
4. The corresponding php breakpoint was hit and the zend studio stop the php just there
for me to inspect the variables and then step in/step over in zend studio?

Can you give me detail instruction on how to configure so that i can do in that way?

Thanks!
Robert
0
Comment
Question by:matiascx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
babuno5 earned 500 total points
ID: 37744631
here is an article giving step by step guide to start debugging with PHP

http://devzone.zend.com/1147/debugging-php-applications-with-xdebug/
0
 

Author Comment

by:matiascx
ID: 37745544
Thanks for your greate information!
Can you answer me two questions:
A).Can zend studio support following PHP debugging scenario:?
"1. Set breakpoint in the code;
 2. Run the php page somewhere else;
3. If the breakpoint of php code hit, the zend debugging session stops at that code space;
4. What's should be done by us is to inspect and checking code there.
"
B). If you have the power experience on A), can you give detail information for me to set up the debugging environment in local or remote manner.

Thanks!
matiascx
0
 

Author Comment

by:matiascx
ID: 37745832
My local server environment is the Zend Server Communication Edition.
Till now, I can not find out the xdebug module in the phpinfo() output.
How should I go?
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question