Answer the question
In order to leave comments, you need to log in
How to find from where and where the SQL query is called?
There are quite a lot of files as well as code in them. Let's say I'm using a controller (laravel) defined on a page. Okay, let's go into it, but there are a lot of injections and laravel ORM that generates requests on the fly ... I don't understand where the requests come from that cover the server.
Even with logs, this is almost impossible, I have a log, I understand that from a specific file, like. So I commented out 80% of it, I still have a SELECT query with several joins.
How to track in the code where the SQL query came from?
Answer the question
In order to leave comments, you need to log in
For ASP.NET MVC I used Stackify Prefix . A rather convenient profiler in the form of a Web solution: you listen to localhost, view HTTP requests to the server in the form of [Controller/Action], and below them, you can also view completed connections/requests to the database. Perhaps you should look for analogues ...?
ps Demo version here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question