473,395 Members | 1,464 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,395 software developers and data experts.

debugging PHP code

23
Hello All,
I am trying to test a PHP web application. I have installed Eclipse on a Centos machine. I am running a Apache web server.
The problem I am facing is that the code has exit commands at few places and whenever I am debugging the code and the exit command is encountered, the debugging stops. I want restart my debugging from the point I left with POST values.
Can anyone pls help my how to debug the code in these scenarios.
May 17 '10 #1
4 1264
dlite922
1,584 Expert 1GB
so while your debugging you don't want the code todo what it's suppose it?

Why can't you just comment out the exit calls? or the condition that leads to them?




Dan
May 17 '10 #2
knellim
23
The problem is in my web application, there is a main page index.php. So every time this page gets loaded/refreshed based on a variable $mode which is passed as GET parameter. After every page load, the database is disconnected and exit is done.
So, initially, this page gets loaded as login page. It waits for username,password sent as POST data.
The thing is even if I comment out exit, the next pages(ie -pages after login page) are not debugged. I mean i cant see the debugger hitting any line of code after I press Login button in Login form.

I am not sure as how event handling is done and debugging of web pages is done in PHP. So, I am basically not able to understand this!

Please help! Its very important! let me know if any input!
May 20 '10 #3
code green
1,726 Expert 1GB
I am not familiar with Eclipse,
but you can debug yourself by simply running the script in a browser after adding simple echo statements to output variable and $_POST values.
May 20 '10 #4
Markus
6,050 Expert 4TB
Not really understanding OP's question. Anyhoo, check out xdebug.
May 21 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: beliavsky | last post by:
If I have some debugging code in a Python program (mostly print statements) and I want to turn it "off", two obvious methods are to (1) comment out the code (2) set a logical 'debug' variable at...
1
by: Bragadiru | last post by:
How can I debug the code written in a InstallerClass when I perform an installation ? Thnx for any advice.
6
by: DazedAndConfused | last post by:
Is there something special you have to do to get the interactive debugger to work on code behind?
9
by: Sam Marrocco | last post by:
I have an app which has intermittent pauses--menus stop working, etc--for a second or two at a time. Short of purchasing a profiler (expensive) is there a way of viewing which method/function my...
4
by: pauldepstein | last post by:
I am writing code to price some financial options using recursive functions. It compiles but I get a runtime error which is caused by a memory violation. The problem is that the code is much...
7
by: skooter | last post by:
Hi! New to the forum, wondering if anyone could help me? I'm getting this error when trying to compiler the following code on Cygwin... header.h:14: warning declaration does not declare...
4
by: ALaurie10 | last post by:
Hi have code below that enables a user to browse for data and import spreadsheet data. I keep receiving error message 3134 syntax error for "INSERT INTO" statement. Could someone please help me out?...
8
by: Brian | last post by:
What's the best way to debug code that is being run during garbage collection? We are getting AccessViolationExceptions that seem to be happening during garbage collection. But when it hits the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.