【问题标题】:Code::Blocks debugger shows some other path which isn't included in the projectCode::Blocks 调试器显示项目中未包含的其他路径
【发布时间】:2013-11-28 01:44:46
【问题描述】:

我正在尝试使用 code::blocks 调试器。我按照this 基本教程进行操作。我还在you tube上看了两个视频。我实际上是在一个更大的文件上尝试它,该文件的声明和实现在单独的文件中(一个是头文件 tree.h,一个有它的实现 tree.cpp,最后一个有 implementation_tree.cpp 主函数来检查头文件)但它没有用,所以我在一个非常简单的程序上尝试了它。但是现在调试器显示这个错误

Building to ensure sources are up-to-date
Selecting target: 
Debug
Adding source dir: F:\Coding\test\test\
Adding source dir: F:\Coding\test\test\
Adding file: F:\Coding\test\test\bin\Debug\test.exe
Changing directory to: F:/Coding/test/test/.
Set variable: PATH=.;C:\Program Files\CodeBlocks\bin;C:\Program Files\CodeBlocks;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0

[debug]Command-line: F:\Coding\Data Structures\tree.h -nx -fullname  -quiet  -args F:/Coding/test/test/bin/Debug/test.exe
[debug]Working dir : F:\Coding\test\test

Starting debugger: F:\Coding\Data Structures\tree.h -nx -fullname  -quiet  -args F:/Coding/test/test/bin/Debug/test.exe
failed

这行 [debug]Command-line: 中的任何内容都是我之前尝试调试的 tree.h 文件的地址。但是现在我已经从 Code::Blocks 中删除了所有断点和与该文件相关的所有内容,甚至更改了该文件的位置,但它仍然在 Starting debugger: 中显示相同的地址。在多次删除与之相关的所有内容后,我还重建了我的测试程序,但我仍然遇到同样的错误。我正在使用 GDB。

如果这个问题听起来很愚蠢,我很抱歉,因为我是第一次尝试这个问题,并且无法继续阅读任何教程或任何其他论坛或其他任何内容。我还看到了有关 stackoverflow 的其他相关问题,但没有一个对我有用。所以,请帮忙。谢谢。

【问题讨论】:

    标签: debugging codeblocks


    【解决方案1】:

    设置 -> 编译器 -> 搜索目录.. 从那里删除所有路径。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-08-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多