如何在 Visual Studio Code (VSCode) 上运行或调试 php [英] How to run or debug php on Visual Studio Code (VSCode)

查看:65
本文介绍了如何在 Visual Studio Code (VSCode) 上运行或调试 php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到在 Visual Studio 代码上运行或调试 php 的方法,有人知道怎么做吗?

I can't find a way to run or debug php on Visual studio code, Does anyone know how?

推荐答案

就我今天所读到的,目前除了 node.js、JavaScript 和 TypeScript 之外,你不能调试任何东西,但他们说他们想要添加可以调试的新语言.编辑器仍在开发中.尽管如此,我认为未来不会有 php 调试器,因为 php 是服务器端的,所以你不能单独在你的客户端上调试它.

As far as I read about it today, you can't debug anything else than node.js, JavaScript and TypeScript at the moment, but they said they want to add new languages which you can debug. The editor is still in development. Nevertheless, I don't think there will be a php debugger in the future since php is serverside, so you can't debug it on your client alone.

如果你想调试php,我可以推荐xDebug.

If you want to debug php, I can recommend xDebug.

现在,可以使用 VS 代码进行调试了.您需要安装 XDebugphp-debug VScode 扩展.

Now, it is possible to debug with VS code. You need to install XDebug and php-debug extension for VScode.

这篇关于如何在 Visual Studio Code (VSCode) 上运行或调试 php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆