473,396 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Setting breakpoints in PHP - is this possible?

I have some server side code I want to debug (coming from C++
background). I am using echo statements but for some reason, no output
is being generated. It would be much simpler if I could set breakpoints
to see the variable 'states' when a script is being run - is there any
developement IDE/Tool out there that helps me do this?

if the answer is no (which i suspect it is), does anyone know of any
likely reasons as to why my echo statements are not outputting text on
the browser?
Jun 2 '08 #1
3 4707
On 2 May, 15:32, Ronald Raygun <inva...@domain.comwrote:
I have some server side code I want to debug (coming from C++
background). I am using echo statements but for some reason, no output
is being generated. It would be much simpler if I could set breakpoints
to see the variable 'states' when a script is being run - is there any
developement IDE/Tool out there that helps me do this?

if the answer is no (which i suspect it is),
You suspect wrong.

What I am very surprised about is why, when you searched google for:

php breakpoints
or
php ide
or
php ide debugger

as you obviously did before posting here, you totally failed too see
all the hits it came back with!

xdebug is a good starting point. I use it in conjunction with notepad+
+

Eclipse is another good IDE for this purpose.

If you find out why your google connection isn't working, you'll find
all the rest.
Jun 2 '08 #2
..oO(Ronald Raygun)
>I have some server side code I want to debug (coming from C++
background). I am using echo statements but for some reason, no output
is being generated. It would be much simpler if I could set breakpoints
to see the variable 'states' when a script is being run - is there any
developement IDE/Tool out there that helps me do this?
Xdebug
Zend Debugger

Both can be used with the Eclipse IDE for example.
>if the answer is no (which i suspect it is), does anyone know of any
likely reasons as to why my echo statements are not outputting text on
the browser?
Do you get a result from an echo statement at the very beginning of the
script? What's the setting of error_reporting and display_errors in your
php.ini? The first should be E_ALL|E_STRICT, the second "1" or "on".

Micha
Jun 2 '08 #3
Ronald Raygun <in*****@domain.comwrites:
I have some server side code I want to debug (coming from C++
background). I am using echo statements but for some reason, no output
is being generated. It would be much simpler if I could set
breakpoints to see the variable 'states' when a script is being run -
is there any developement IDE/Tool out there that helps me do this?

if the answer is no (which i suspect it is), does anyone know of any
likely reasons as to why my echo statements are not outputting text on
the browser?
There are some pretty good debuggers out there as the
other folks said; however, as far as not seeing anything on your
screen --- it probably means a serious error is occuring even before
the script gets to your echo. You want to make sure screen display
of errors is on. Check the documentation, but try adding these two
lines to a .htaccess file in the same directory with the application:

php_flag display_errors on
php_value error_reporting 2047

That should get you something!

--
John
__________________________________________________ _________________
John Murtari Software Workshop Inc.
jmurtari@following domain 315.635-1968(x-211) "TheBook.Com" (TM)
http://thebook.com/
Jun 2 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mortimer Schnurd | last post by:
Hi folks, I am just learning C# and need some help with setting debugger breakpoints. In VB 6, I could easily set breakpoints on variables which either change in value or evaluate to a specific...
4
by: Weston Weems | last post by:
I've got an error logging class I normally fire off from catch portion of try/catch blocks. The code fetches server statistics etc, and dumps them into the database. For debugging purposes, I...
8
by: Vidar Martinsen | last post by:
Hi I try to debug my program with breakpoints, but even if it the breakpoint is first in the form Load for the start-form, it seams to continue running and I have a very dificult time debugging...
9
by: Rea | last post by:
Hi eb I set some 'Stop' statements and also visual breakpoints in asp code (vbscript). I am doing that in Microsoft Script debugger. Than I refresh the original page and expect execution to halt...
1
by: jeem | last post by:
I am using ActiveState Komodo 3.5 to work on a large python 2.4 application with an extensive UI... I am attempting to debug the application and am setting breakpoints in 4 different *.py files.....
5
by: Jerry Spence1 | last post by:
In VB6 you could set a breakpoint when a variable had changed value. I can't find this in VB2005. Is it there somewhere? -Jerry
1
by: Jeff | last post by:
Hey How can I get a list of breakpoints in Visual Studio 2005, while the loaded solution is in Edit mode (not running or not debugging)... I'm trying to learn thousands of uncommented C# code...
6
by: PeteOlcott | last post by:
When I set a break point in a file that has both managed C++ and unmanaged C++ the debugger never sees the breakpoints in the managed code. What can be done to get the debugger to "see" the...
0
by: PeteOlcott | last post by:
When I set a break point in a file that has both managed C++ and unmanaged C++ the debugger never sees the breakpoints in the managed code. What can be done to get the debugger to "see" the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.