I want to debug the following source code from google code repository,
我想调试谷歌代码库中的以下源代码,
http://code.google.com/p/rx/
My problem is, I am unable to find a suitable ide which can consider all the sub-folders in the source code as one complete project. I have tried netbeans C++, codeblocks, eclipse C++,etc. The problem with all of them while opening the project is that they consider all the subfolders within the main project as different projects.
我的问题是,我无法找到一个合适的ide,它可以将源代码中的所有子文件夹看作一个完整的项目。我尝试过netbeans c++、codeblocks、eclipse c++等。在打开项目时,所有子文件夹的问题是,它们将主项目中的所有子文件夹视为不同的项目。
Is there any ide which can be used for debugging the source code from google code repository. OR IS THERE ANY WAY OF DEBUGGING THESE PROJECTS?
是否有ide可用来调试来自谷歌代码库的源代码。或者有没有办法调试这些项目?
Operating System: Ubuntu or Windows
操作系统:Ubuntu或Windows
2 个解决方案
#1
1
You can create a dummy makefile :
您可以创建一个虚拟makefile:
all:
g++ code_dir/*/*.?pp -o fake
and then import project using Makefiles. This is possible to do for kdevelop and eclipse (not sure for other IDEs).
然后使用makefile导入项目。这对于kdevelop和eclipse都是可能的(对于其他ide则不是很确定)。
Take a note that the above makefile imports all files with a *.?pp
template from all directories in the code_dir directory.
请注意,上面的makefile用*来导入所有文件。来自code_dir目录中的所有目录的pp模板。
#2
0
You can create a new project with your favorite IDE and then import the sources manually.
您可以使用您喜欢的IDE创建一个新项目,然后手动导入源代码。
You might also consider using a decent editor. Personally, I prefer vim and don't see any appealing reason to use an editor 10 times the size of the actual project.
你也可以考虑使用一个像样的编辑器。就我个人而言,我更喜欢vim,我不认为有什么吸引人的理由去使用比实际项目大10倍的编辑器。
#1
1
You can create a dummy makefile :
您可以创建一个虚拟makefile:
all:
g++ code_dir/*/*.?pp -o fake
and then import project using Makefiles. This is possible to do for kdevelop and eclipse (not sure for other IDEs).
然后使用makefile导入项目。这对于kdevelop和eclipse都是可能的(对于其他ide则不是很确定)。
Take a note that the above makefile imports all files with a *.?pp
template from all directories in the code_dir directory.
请注意,上面的makefile用*来导入所有文件。来自code_dir目录中的所有目录的pp模板。
#2
0
You can create a new project with your favorite IDE and then import the sources manually.
您可以使用您喜欢的IDE创建一个新项目,然后手动导入源代码。
You might also consider using a decent editor. Personally, I prefer vim and don't see any appealing reason to use an editor 10 times the size of the actual project.
你也可以考虑使用一个像样的编辑器。就我个人而言,我更喜欢vim,我不认为有什么吸引人的理由去使用比实际项目大10倍的编辑器。