sublimetext3 - Sublime text3 xdebug 远程服务器
问题描述
我正在尝试在我的远程服务器上设置 xdebug 以使用 sublime text3。我已经安装了 sublime text3 插件,在服务器上安装了 xdebug 并设置了 xdebug.ini 但它不起作用。有人可以向我解释这个过程吗?
我正在使用 sublime 的 ssh 插件将远程项目与本地同步,但我没有本地地址。
这是我的崇高 xdebug 用户设置
{
"debug_layout" : {
"cols": [0.0, 0.3, 1.0],
"rows": [0.0, 0.8, 1.0],
"cells": [[0, 0, 2, 1], [0, 1, 1, 2], [1, 1, 2, 2]]
},
// Group and index positions for debug views.
"context_index": 0,
"watch_index": 1,
"stack_index": 0,
"breakpoint_index": 1,
"breakpoint_group": 2,
"context_group": 1,
"stack_group": 2,
"watch_group": 1,
"path_mapping": {
"/path/on/server/project" : "/Users/user/my/local/project/"
},
"ide_key": "ls.xdebug"
}
还有我的 xdebug.inizend_extension=xdebug.so
zend_extension=/usr/lib/php/20151012/xdebug.so
xdebug.remote_autostart = 1
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = 12.34.56.78 # this will be my address
xdebug.remote_log = /tmp/xdebug_remote.log
xdebug.remote_mode = req
xdebug.remote_port = 9005
解决方案
如果它有用,这是我上次使用它时的项目文件:
{
"folders":
[
{
"follow_symlinks": true,
"path": "/Users/antonis/Sites/demo"
}
],
"settings": {
"xdebug": {
"url": "http://localhost:5080/",
}
}
}
推荐阅读
- r - 替换引用命名向量的整个字符串
- javascript - 在 Javascript 中将游戏数据压缩或转换为短字符串密码(然后再返回)
- r - 使用带有数字 x 轴的 ggplot 在 R 中的 y 轴上绘制类别变量的比例
- python - 用于分析 3D Numpy 阵列的标准偏差、Z 分数和 IQR
- javascript - 如何在 Vuejs 中单击标签时重置/清除复选框?
- python - 无法使用 MusicScore 显示乐谱的 png 表示
- html - 当我有两个导航栏和一个使用 bootstrap 4 的切换时,如何更改导航栏项目的顺序?
- c - 为什么我的代码导致分段错误?
- assembly - 执行地址解析时,汇编程序从哪里开始(就内存地址而言)?
- python - 为一个 n 元素元组更改顺序元组 n 次