PrestaShop 1.7 с PHP Xdebug получение исключения и исключение файлов в скрипте не работает
Используя PrestaShop 1.7 для разработки моего приложения и используя Xdebug для отладки моего кода. Ссылка на документ Xdebug является https://xdebug.org/docs/ .
Но он будет получать исключение каждый раз, когда говорит, что
"Проверка целостности не удалась."
сценарий отладки является
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}
Консоль xdebug показывает ответ
connection 7: read ECONNRESET
{ XDebugError: command is not available
at new Response (/home/user/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:56:19)
at new BreakpointSetResponse (/home/user/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:207:9)
at Connection.<anonymous> (/home/user/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:599:20)
at Generator.next (<anonymous>)
at fulfilled (/home/user/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:4:58) code: 5, name: 'XDebugError' }
{ XDebugError: command is not available
at new Response (/home/user/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:56:19)
at new BreakpointSetResponse (/home/user/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:207:9)
at Connection.<anonymous> (/home/user/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:599:20)
at Generator.next (<anonymous>)
at fulfilled (/home/user/.vscode/extensions/felixfbecker.php-debug-1.13.0/out/xdebugConnection.js:4:58) code: 5, name: 'XDebugError' }
Это исключение из /vendor/defuse/php-encryption/src/Crypto.php
Я пытаюсь исключить папки и файлы , такие как vendor
, var
, classes/Tools.php
Как я могу решить эту проблему? Есть ли какой-либо другой инструмент отладки поддержки PrestaShop?
У вопроса есть решение - Посмотреть?

Обратитесь за поддержкой к поставщику...
Источник
Ответы - PrestaShop 1.7 с PHP Xdebug получение исключения и исключение файлов в скрипте не работает / PrestaShop 1.7 with PHP Xdebug getting exception and exclude files in script not working
Является ответом!

08.11.2019 09:07:01
Я решил проблему, игнорируя папку поставщика.Я не уверен, что это правильный путь. Изменен сценарий отладки
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"ignore": [
"**/vendor/**",
"**/var/**",
"**/src/**",
"**/classes/Tools.php",
"**/classes/PrestaShopAutoload.php"
]
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}
Помочь в развитии проекта: