【发布时间】:2017-11-23 23:35:02
【问题描述】:
我在 VSCode 上的 PHP 中调试成功。
我的问题是当我运行项目时,它总是在函数处出错:
protected function getJsonPayload($payload)
{
$payload = json_decode(base64_decode($payload), true);
// If the payload is not valid JSON or does not have the proper keys set we will
// assume it is invalid and bail out of the routine since we will not be able
// to decrypt the given value. We'll also check the MAC for this encryption.
if (! $this->validPayload($payload)) {
throw new DecryptException('The payload is invalid.');
}
if (! $this->validMac($payload)) {
throw new DecryptException('The MAC is invalid.');
}
return $payload;
}
...来自文件:/srv/http/laravelproject/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php
我无法调试到我设置的断点。
【问题讨论】:
-
你在哪里调试?码头工人?流浪汉?想要吗?
-
@TzookBarNoy 我在 Laravel 项目中的控制器上调试了一个函数。我不使用 Docket 或 Vagrant。
标签: php laravel debugging visual-studio-code