User:ASarabadani (WMF)/Database for developers toolkit/How-to/Debug

Local
See Manual:How_to_debug

Production

 * For general logs of production traffic see User:ASarabadani (WMF)/Database for devs toolkit/How-to/Monitor
 * If you want to check what queries have been made in requests. Enable WikimediaDebug, make those requests with "Verbose logging" enabled and then check mwdebug dashboard in logstash and filter for "DBQuery" channel.