php Notepad++ 没有调试功能或任何调试插件 - 这是真的吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3427618/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 09:42:34  来源:igfitidea点击:

Notepad++ does not have debugging capability or any debugging plug-in - is this true?

phpdebuggingnotepad++

提问by creativekev

For those who code in Notepad++, I just want to confirm that Notepad++ does not have any built-in debugging function (i.e. ability to set breakpoints, step one by one and look at values in the middle of execution). I'm new to PHP coding and am looking for a good editor/IDE to use. Since I would like a debugging function, your answer would greatly help me narrow my choices. Note that I've recently downloaded and am in fact using Notepad++ at the moment, and cannot seem to find either a built-in debugger or a debugging plug-in from the Notepad++ menus. Thanks in advance.

对于用 Notepad++ 编码的人,我只想确认 Notepad++ 没有任何内置的调试功能(即能够设置断点,一步一步地查看执行过程中的值)。我是 PHP 编码的新手,正在寻找一个好的编辑器/IDE 来使用。由于我想要调试功能,您的回答将极大地帮助我缩小选择范围。请注意,我最近下载了并且实际上目前正在使用 Notepad++,并且似乎无法从 Notepad++ 菜单中找到内置调试器或调试插件。提前致谢。

回答by eldarerathis

There is the DBGP Plugin for NP++that hooks into xDebug if you want to try it.

如果您想尝试,有用于 NP++DBGP 插件可以连接到 xDebug。

I found decent install/setup instructions here, but as with most things computer related, YMMV.

我在这里找到了不错的安装/设置说明,但与大多数计算机相关的东西一样,YMMV。

回答by rook

I like the new Eclipse Helios with PDT 2.2 which hooks into xDebug. If you haven't used eclipse in a while you should check out the new version. The new build of PDT is by far the best PHP debugger I have used.

我喜欢带有 PDT 2.2 的新 Eclipse Helios,它与 xDebug 挂钩。如果您有一段时间没有使用 eclipse,您应该查看新版本。新版本的 PDT 是迄今为止我用过的最好的 PHP 调试器。

回答by Andrew Oikle

Try Eclipse w/Zend PDT. The Zend debugger is much stronger than xDebug and it also introspects your code so you can ctrl-click a function call and it will take you to the declaration.

尝试使用带有 Zend PDT 的 Eclipse。Zend 调试器比 xDebug 强大得多,它还可以内省您的代码,因此您可以按住 ctrl 单击一个函数调用,它将带您到声明。