【问题标题】:Efficient debugging approach for PostmanPostman 的高效调试方法
【发布时间】:2015-08-06 22:52:46
【问题描述】:

我一直在使用 Postman 为使用 CodeIgniter 框架的产品开发 php 中的 API。

要调试我的代码,我必须使用 echoprint_r() 跟踪控制器和模型,以识别实际错误,因为它不提供错误消息。

使用 CodeIgniter 时: 当模型中存在错误时,使用 Postman 时有什么方法可以识别控制器的错误吗?

如果您知道 Postman 中更好的调试方法,请提供帮助。

【问题讨论】:

    标签: php codeigniter postman


    【解决方案1】:

    如果您的 PHP 代码有问题,最好查看日志消息以确定错误所在,而不是查看 Postman。

    另一个用于调试的好工具是XDebug

    【讨论】:

    • 你的意思是error_reporting();生成的日志消息。我已经尝试过了,但它无法向我显示模型中的错误。感谢 XDebug,看起来很有用。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-21
    • 1970-01-01
    • 2012-07-14
    相关资源
    最近更新 更多