vscode 使用ssh进行远程开发 (remote-ssh)

发布时间:2026/10/13 1:47:14
vscode 使用ssh进行远程开发 (remote-ssh) 在vscode添加remote ssh插件输入ssh 主机用户名主机地址 -A连接远程主机ssh root127.0.0.1 -A远程服务器要安装1.用VSCODE打开远程服务器对应项目启动断点后,出现后2.在远程服务器对应PHP版本中安装对应xdebug3.在对应PHP版本PHP.ini[Xdebug] zend_extensionxdebug xdebug.mode debug,profile xdebug.start_with_request yes xdebug.output_dir /www/wwwlogs/xdebug xdebug.client_host localhost xdebug.client_port 9003 xdebug.profiler_output_name cache.out.%t-%s xdebug.collect_return1 xdebug.collect_params1 xdebug.auto_traceOff xdebug.trace_output_dir/www/wwwlogs/php_log/php8.2.9nts.xdebug.trace xdebug.profiler_enableOff xdebug.profiler_output_dir/www/wwwlogs/php_log/php8.2.9nts.xdebug.profiler xdebug.remote_enableOff xdebug.remote_hostlocalhost xdebug.remote_port9003 xdebug.remote_handlerdbgp4.在对应项目的根目录中创建.vscode/launch.json文件{ // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息请访问: https://go.microsoft.com/fwlink/?linkid830387 version: 0.2.0, configurations: [ { name: Listen for Xdebug, type: php, request: launch, port: 9003 }, { name: Launch currently open script, type: php, request: launch, program: ${file}, cwd: ${fileDirname}, port: 0, runtimeArgs: [ -dxdebug.start_with_requestyes ], env: { XDEBUG_MODE: debug,develop, XDEBUG_CONFIG: client_port${port} } }, { name: Launch Built-in web server, type: php, request: launch, runtimeArgs: [ -dxdebug.modedebug, -dxdebug.start_with_requestyes, -S, localhost:0 ], program: , cwd: ${workspaceRoot}, port: 9003, serverReadyAction: { pattern: Development Server \\(http://localhost:([0-9])\\) started, uriFormat: http://localhost:%s, action: openExternally } } ] }参考vscode 使用ssh进行远程开发 (remote-ssh)_vscode remote ssh-CSDN博客

关于本文作者

来自尧图内容编辑团队

尧图内容编辑团队 内容团队

尧图内容编辑团队

本文由尧图网络内容编辑团队执笔。团队由资深项目经理、前端工程师与设计师组成,所有内容均来自亲手交付的真实项目,先讲清问题、再给出可落地的解法。尧图深耕北京网站建设十年,服务过京华建材集团、智造科技等各行业客户,把一线经验沉淀为可复用的行业观察。

  • 十年建站经验,覆盖建材、制造、服务、文创等
  • 项目经理把关选题与事实准确性
  • 工程师与设计师联合撰写专业细节
  • 统一编辑规范,保证文风与排版一致
  • 每月复盘转化数据,迭代选题方向

延伸阅读

相关资讯与近期热门内容

深度阅读推荐

建站决策前值得细读的三篇

网站改版的5个关键决策
2024-08-12

网站改版的5个关键决策

什么时候该改版、改到什么程度、如何避免流量掉光,京华建材集团改版复盘给出答案。

获取专属建站方案

看完文章,把您的行业与预算告诉我们,免费获取一份量身定制的官网建设方案与报价。

立即免费咨询