Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Debugging code completion plugin

(1/4) > >>

Pecan:
I'm getting an intermittent loop in code completion. It goes away when I turn off symbol browsing.

I'd like to turn on tracing to get closer to the problem.

Would someone give me a hint about the proper way to do that.

thanks

ollydbg:
The loop is mainly in function "void ParserThread::DoParse()", if you would like to enable the TRACE macro, it is setting:

--- Code: ---#define CC_PARSERTHREAD_DEBUG_OUTPUT 1

--- End code ---

But it will log MANY messages.

I think you can try to disable all the four options in, Editor->Code Completion->C/C++ Parser, so that only the files in your cbp file will be parsed.

If you have narrowed down the endless loop in one file, then you can try the cc_test project, and put the code snippet in "test.h", this will find the bug quickly.

MortenMacFly:

--- Quote from: ollydbg on July 14, 2013, 05:58:40 am ---But it will log MANY messages.

--- End quote ---
Not if you have a small project to reproduce and probably do not scan system headers.

ollydbg:
Also, the log and debug log message should be redirected to files (I think C::B has such start up options), if C::B hangs, you are hard to see them in the main GUI.

ollydbg:

--- Quote from: ollydbg on July 17, 2013, 02:18:06 am ---Also, the log and debug log message should be redirected to files (I think C::B has such start up options)

--- End quote ---
FYI: they are options below:

--- Code: -----log-to-file --debug-log-to-file
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version