我配置成功,在VSCode上以PHP進行調試。無法在Laravel項目中使用Visual代碼進行調試
我的問題是,當我運行該項目,它總是在錯誤的功能:
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
我不能調試到斷點我是被陷害。
的Gif屏幕記錄:http://i.imgur.com/6pNkoHe.gif
你在哪裏調試?泊塢窗?流浪漢?想? –
@TzookBarNoy我在Laravel項目的控制器上調試一個函數。我不使用Docket或Vagrant。 – vanloc