【问题标题】:Cannot add debugging sources in Netbeans无法在 Netbeans 中添加调试源
【发布时间】:2016-03-05 16:07:19
【问题描述】:

在 Netbeans 8.1 中,我尝试调试一些文件,但 Netbeans 不允许我将它们添加为调试源。要添加源,我单击了 Window > Debugging > Sources。然后在Sources 选项卡中,我右键单击并选择Add Source Root。然后我选择了源文件夹并点击了添加,但是没有添加任何东西。

【问题讨论】:

    标签: debugging netbeans remote-debugging netbeans-8 netbeans-8.1


    【解决方案1】:

    当我遇到这个问题时,通常是因为 Netbeans 看不到我正在尝试调试的源代码。如果我尝试调试项目的源代码,有时 Netbeans 不允许我添加这些源代码。这通常是因为 Netbeans 看不到源,所以我推荐以下步骤:

    1. 通过单击文件 > 打开项目在Netbeans中打开项目。
    2. 查看项目的源代码并确保您尝试调试的文件在那里可见。
    3. 如果文件不可见,则 Netbeans 无法看到源代码,因此 add the source folder to the projectreconfigure your project 以便在 Netbeans 的项目中显示源代码。
    4. 如果尚未将源添加为调试源,请使用您提到的步骤添加它们。

    【讨论】:

      猜你喜欢
      • 2018-05-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多