google-app-engine - 如何设置 Xdebug 以远程调试 PHP Google App Engine 应用程序?
问题描述
我想使用 Xdebug 远程调试我的 PHP Google App Engine 应用程序。在 Visual Studio 中,我将 launch.json 设置为:
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9090,
"pathMappings": {
"/": "${workspaceRoot}/" // remote / local
}
将本地 php.ini 设置为:
zend_extension="xdebug.so"
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_connect_back=1
xdebug.remote_port = 9090
xdebug.remote_log="/tmp/xdebug.log"
为 Chrome 扩展安装了 Xdebug 助手。
我在脚本中设置了一个断点并启动了调试。当我用浏览器访问脚本时,什么也没有发生。
解决方案
推荐阅读
- powershell - 如何使用 Powershell 在 Azure AD 应用程序中为隐式流启用访问令牌
- sql - 通过生成查询从 DataFrame 中获取数据并插入到 SQL 表中的多行中
- ios - 如何在 iOS 13 中更改状态栏 Alpha?
- reactjs - Mobx 如何等到 Promise
完成然后运行不同的功能 - javascript - C# ToDictionary 的 JavaScript 等价物
- powershell - 我在创建唯一目录和文件时做错了什么,同时使用 PowerShell 验证目录和文件名是唯一的?
- node.js - 重新启动 EC2 现在我无法调用我的快速 API
- python-3.x - 如何舍入小数类型
- xaml - Xamarin 表单样式 - 支持多种目标类型
- c++ - 如何将线条颜色与顶点颜色分开?