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. 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. Start Eclipse and import your C/C++ project
  2. Indexing log will be printed out in Console
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值