Netbeans不显示错误消息 [英] Netbeans does not show error messages

查看:582
本文介绍了Netbeans不显示错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好, 当代码中发生某些错误时,我的Netbeans不显示错误消息.它曾经在发生错误(例如语法错误)的行上显示红色图标.现在,它仅在文件选项卡中的文件名旁边显示图标.我不记得是否更改过某些IDE设置-没有理由禁用错误消息.

Helo, my Netbeans does not show error messages when some error occurred in code. It used to show red icon on the line where error (eg. syntax error) occurred. Now it shows icon only next to filename in file tab. I do not remember if I changed some IDE settings - there was no reason to disable error messages.

我希望第85行有红色图标,就像这里一样

I expect red icon on the line number 85, like it is here

也许我在netbeans首选项中缺少某些选项.我试图找到它,但是没有结果.

Maybe I am missing some option in netbeans preferences. I have tried to find it but with no result.

推荐答案

这不适用于OP,因为他们使用的是.php扩展名,但这可能对其他人有帮助...

This doesn't apply to OP because they are using .php extensions, but it might help someone else...

对我来说,问题是因为我正在使用drupal进行开发,因此大多数文件都没有以php结尾.解决我的问题:

For me the issue was because I'm developing with drupal and so most files don't end with php. To fix my issue:

  1. 工具|选项|杂项|文件
  2. 单击文件扩展名"旁边的新建",然后选择"text/x-php5"作为关联的文件类型.
  3. 重新启动IDE

这篇关于Netbeans不显示错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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