• How to Debug the Eclipse C/C++ Indexer


    This page will guideline you to debug the C/C++ Indexer in Eclipse when you meet C/C++ Indexer Issues like below:
    1.Eclipse takes long time to do the C/C++ Indexer after importing your C/C++ project
    2.Eclipsewill get Out of Memory exception during C/C++ Indexer

    Setup the debug process by below way:

    1. Open the Eclipse configure file : /eclipse/eclipseRE/configuration/config.ini, add below line:
    osgi.debug=/<path>/my_debug.option
    
    • 1
    1. Create my_debug.option in folder /path/ and add below content:
    #turn on tracing for the cdt-core plugin
    org.eclipse.cdt.core/debug=true
    org.eclipse.cdt.core/debug/indexer=true
    
    org.eclipse.cdt.core/debug/pdomtimings=true
    org.eclipse.cdt.core/debug/parser=true
    org.eclipse.cdt.core/debug/deltaprocessor=true
    org.eclipse.cdt.core/debug/scanner=true
    org.eclipse.cdt.core/debug/model=true
    
    #Reorts sequence of files indexed
    org.eclipse.cdt.core/debug/indexer/activity=true
    # Reports statistics for indexer
    org.eclipse.cdt.core/debug/indexer/statistics=true
    # Reports unresolved inclusions for indexer
    org.eclipse.cdt.core/debug/indexer/problems/inclusion=true
    # Reports scanner-problems for indexer (other than unresolved includes)
    org.eclipse.cdt.core/debug/indexer/problems/scanner=false
    # Reports syntax-problems for indexer
    org.eclipse.cdt.core/debug/indexer/problems/syntax=false
    # Reports problems for indexer, including inclusion-, scanner-, syntax- and  resolution-problems.
    org.eclipse.cdt.core/debug/indexer/problems=false
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    1. Start Eclipse and import your C/C++ project
    2. Indexing log will be printed out in Console
  • 相关阅读:
    基于Python的医疗花费预测
    若依移动端Ruoyi-App——引入uview2.0开发项目
    力扣每日一题-美化数组的最少删除数-2023.11.21
    [Python进阶] Pyinstaller打包模式
    什么样的测试/开发程序员才是牛逼的程序员?
    Redis优化
    【UniApp】-uni-app-网络请求
    java-web阶段的总结
    iOS自定义滚动条
    Leetcode44: 通配符匹配
  • 原文地址:https://blog.csdn.net/devin_xin/article/details/125538420