Does CLion support #line directives?


Hi, we have included Duktape in our project and the project ships bundled .c and .h files with #line directives, eg:


#line 1 "duk_replacements.h"

This causes a problem when debugging because Intellij obviously can't find these files and shows the assembly instead. Is there a way to point CLion at the correct sources (which are supplied separately and not part of the project?

Or perhaps there is a way to tell gdb to ignore these directives and report the actual filename?


1 comment


In general you can help CLion to find headers mentioned in #include statements using the include_directories() command, please see

As for the #line directive: feel free to comment or upvote about supporting it. See if you are not familiar with YouTrack.


Please sign in to leave a comment.