Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在重构一些单体代码,将其分解为功能。由于变量始终在程序部分的范围内,我经常发现一个我忽略和忽略的变量传递给我已将其代码迁移到的函数。有什么可以帮助我在函数中找到未实例化的变量吗?也许是 IDE 中的一个功能?
eclipse/PDT 中的 php 代码验证器在这方面做得很好。它将突出显示有错误的行;将鼠标悬停在错误标记上会弹出它认为有错误的原因。