Actually the question is in the title, what approaches and algorithms should be used when solving incomprehensible tasks and parsing incomprehensible code?

Closed due to the fact that it is necessary to reformulate the question so that you can give an objectively correct answer to the participants user207618, Kromster , pavel , user194374, dirkgntly Aug 26 '16 at 8:25 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • And what are you using when it is clear which CMS or Framework? What is the difference? - tutankhamun
  • I look at the code trying to find signs of some kind of cms or frameworks, using online services to determine the platform. Maybe I didn’t write correctly, I wondered how the application can work out on the shelves, i.e., according to what algorithm to start the work, research. Interested in the opinions and advice of experienced progers) - Sergey Zaigraev

1 answer 1

With the debugger:

  1. We put ide (phpstorm, netbeans, etc.)
  2. Install php-xdebug
  3. xdebug.remote_enable=on remote debug
  4. Open ide, and configure debag launch via xdebug (select remote debug and configure server for debugging)
  5. Put a stopping point at the project entry point
  6. And run debug
  7. After using the navigation and step by step we go deep into the application.

Adding from @Kison Yes, you can additionally enable profiling in xdebug. Then we open any page of the site with the $ _GET parameter XDEBUG_PROFILE, as a result, depending on the xdebug settings in the x folder, we get a file in which there is a tree of calls for all functions of the application. You can open the file for analysis with the same phpstorm

  • Yes, you can additionally enable profiling in xdebug. Then we open any page of the site with the $ _GET parameter XDEBUG_PROFILE, as a result, depending on the xdebug settings in the x folder, we get a file in which there is a tree of calls for all functions of the application. You can open the file for analysis with the same phpstorm - Kison
  • one
    @Kison Added in response. But for profiling I use xhprof - Naumov