hyperf 怎么调试更方便?
hyperf 项目启动报错信息在控制台打印,但是不像laravel 提示的那么详细清晰,hyperf大佬们都怎么调试的?
就像这种异常,就没有laravel 那么清晰明了,非常影响效率
[ERROR] #0 /www/pw-service/runtime/container/proxy/App_Controller_V1_User_Wallet_UserWithdrawController.proxy.php(41): App\Repository\User\Wallet\UserWithdrawOrderRepository->save(3, 10, 10138)
#1 /www/pw-service/vendor/hyperf/http-server/src/CoreMiddleware.php(148): App\Controller\V1\User\Wallet\UserWithdrawController->save(Object(App\Request\V1\UserWallet\UserWithdrawOrderSaveRequest))
#2 /www/pw-service/vendor/hyperf/http-server/src/CoreMiddleware.php(97): Hyperf\HttpServer\CoreMiddleware->handleFound(Object(Hyperf\HttpServer\Router\Dispatched), Object(Hyperf\HttpMessage\Server\Request))
#3 /www/pw-service/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(45): Hyperf\HttpServer\CoreMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#4 /www/pw-service/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(27): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#5 /www/pw-service/runtime/container/proxy/App_Middleware_UserAuthMiddleware.proxy.php(69): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#6 /www/pw-service/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(45): App\Middleware\UserAuthMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#7 /www/pw-service/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(27): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#8 /www/pw-service/vendor/hyperf/tracer/src/Middleware/TraceMiddleware.php(56): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#9 /www/pw-service/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(45): Hyperf\Tracer\Middleware\TraceMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#10 /www/pw-service/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(27): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#11 /www/pw-service/vendor/hyperf/validation/src/Middleware/ValidationMiddleware.php(83): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#12 /www/pw-service/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(45): Hyperf\Validation\Middleware\ValidationMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#13 /www/pw-service/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(27): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#14 /www/pw-service/app/Middleware/RequestLogMiddleware.php(66): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#15 /www/pw-service/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(45): App\Middleware\RequestLogMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#16 /www/pw-service/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(27): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#17 /www/pw-service/app/Middleware/MobileVerifyMiddleware.php(69): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#18 /www/pw-service/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(45): App\Middleware\MobileVerifyMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#19 /www/pw-service/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(27): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#20 /www/pw-service/app/Middleware/LocaleMiddleware.php(52): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#21 /www/pw-service/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(45): App\Middleware\LocaleMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#22 /www/pw-service/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(27): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#23 /www/pw-service/app/Middleware/ClientIpMiddleware.php(31): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#24 /www/pw-service/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(45): App\Middleware\ClientIpMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#25 /www/pw-service/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(27): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#26 /www/pw-service/app/Middleware/CorsMiddleware.php(38): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#27 /www/pw-service/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(45): App\Middleware\CorsMiddleware->process(Object(Hyperf\HttpMessage\Server\Request), Object(Hyperf\Dispatcher\HttpRequestHandler))
#28 /www/pw-service/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(27): Hyperf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\Server\Request))
#29 /www/pw-service/vendor/hyperf/dispatcher/src/HttpDispatcher.php(35): Hyperf\Dispatcher\HttpRequestHandler->handle(Object(Hyperf\HttpMessage\Server\Request))
#30 /www/pw-service/vendor/hyperf/http-server/src/Server.php(112): Hyperf\Dispatcher\HttpDispatcher->dispatch(Object(Hyperf\HttpMessage\Server\Request), Array, Object(Hyperf\HttpServer\CoreMiddleware))
#31 [internal function]: Hyperf\HttpServer\Server->onRequest(Object(Swoole\Http\Request), Object(Swoole\Http\Response))
#32 {main}
推荐文章: