I am currently developing a Drupal webpage using PDT. When running without XDebug, the site works fine.
我目前正在使用PDT开发Drupal网页。在没有XDebug的情况下运行时,该网站运行正常。
When I enable XDebug, the site works fine but opens up tons of Javascript errors that I need to click through.
当我启用XDebug时,该网站工作正常但却打开了大量需要点击的Javascript错误。
Example:
A Runtime Error has occurred. Do you wish to Debug?
发生了运行时错误。你想调试吗?
Line: 1 Error: Syntax error
行:1错误:语法错误
--
It seems to only be a problem when XDebug/PDT uses Firefox as its browser, this problem does not occur when using IE. Could it be some incompatability with Firebug?
当XDebug / PDT使用Firefox作为其浏览器时,似乎只是一个问题,使用IE时不会出现此问题。可能与Firebug有些不兼容吗?
2 个解决方案
#1
2
here is how to solve this problem:
这是如何解决这个问题:
Turn off XDebug output capture:
关闭XDebug输出捕获:
Window -> Preferences, expand PHP, expand Debug, select "Installed Debuggers", choose "XDebug", click "Configure" on the right to bring up the configure dialog. In the middle "Output Capture Settings", set "Capture stdout" to "Off".
窗口 - >首选项,展开PHP,展开调试,选择“已安装的调试器”,选择“XDebug”,单击右侧的“配置”以打开配置对话框。在“输出捕获设置”中间,将“捕获标准输出”设置为“关闭”。
#2
0
This is a bit of a guess, but try Windows => Preferences => JavaScript => Include Path
这是一个猜测,但尝试Windows => Preferences => JavaScript => Include Path
#1
2
here is how to solve this problem:
这是如何解决这个问题:
Turn off XDebug output capture:
关闭XDebug输出捕获:
Window -> Preferences, expand PHP, expand Debug, select "Installed Debuggers", choose "XDebug", click "Configure" on the right to bring up the configure dialog. In the middle "Output Capture Settings", set "Capture stdout" to "Off".
窗口 - >首选项,展开PHP,展开调试,选择“已安装的调试器”,选择“XDebug”,单击右侧的“配置”以打开配置对话框。在“输出捕获设置”中间,将“捕获标准输出”设置为“关闭”。
#2
0
This is a bit of a guess, but try Windows => Preferences => JavaScript => Include Path
这是一个猜测,但尝试Windows => Preferences => JavaScript => Include Path