使用PrestaShop 1.7开发我的应用程序,并使用Xdebug调试我的代码。 Xdebug doc链接为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开发我的应用程序,并使用Xdebug调试我的代码。 Xdebug doc链接为https://xdebug.org/docs/。但是每次都会说“ Integrity ...
我通过忽略供应商文件夹解决了问题。我不确定这是正确的方法。更改的调试脚本为