Answer the question
In order to leave comments, you need to log in
What are the techniques for debugging a web application?
Good day. There is a task to transfer one web application from one server to another. The application was last written back in 2005, and is something big, scary, written in a procedural style in PHP (almost everything is written with @). When moving, the application completely refuses to run on php5.6. It is very difficult to understand the logic of the application. Tell me what are the methods for debugging and understanding what is needed for what?
ps Rewriting the application is not yet an option, it's already a very big functionality. You need to move quickly so that later you can slowly look for a replacement
Answer the question
In order to leave comments, you need to log in
The correct solution in this case is to raise some kind of vagrant / docker on a new server with an environment as identical as possible to the original one.
In other solutions from the evil one, a full-fledged debug of an application with complex logic is guaranteed man-months.
If you run under Linux, then as an option - to build from the sources the version of php on which the application worked in 2005.
In your case,
- include all logs and warnings
- look at deprecated functions and replace them with previous code
ps It might be easier and cheaper to rewrite the application.
Good afternoon!
Perhaps if the application is complex enough and contains a lot of incomprehensible logical constructs, it will be easier for you to write this application again, if of course you have the resources for this. If you decide to debug the current version, then you need to install xdebug, which will help you deal with all the difficulties :)
PHP7 is very fast and has a lot of nice features.
I would rewrite the application without hesitation.
Just imagine how you will support it. This is hell..
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question