search

Home  >  Q&A  >  body text

How can I configure it to display SQL output while debugging?

I have enabled APP_DEBUPG and APP_TRACE in the configuration file and cannot track SQL statement output. How should I configure it?

phpcn_u16587phpcn_u165872650 days ago1325

reply all(2)I'll reply

  • 长江啊你全是水

    长江啊你全是水2017-08-31 16:47:21

    Add the following configuration in the configuration file

    // Apply debugging mode
                                                                                                                                                                                                  
    In the lower right corner of the page There is an icon. Click it. There is a sql inside it

    reply
    0
  • 长江啊你全是水

    This configuration is required for debugging during the development phase, not for the production environment.

    长江啊你全是水 · 2017-08-31 16:48:23
  • PHP中文网

    PHP中文网2017-08-28 08:55:11

    M()->getLastSql(); Try this.

    reply
    1
  • Cancelreply