I believe I am experiencing some weirdness in how YouCompleteMe is compiling my files to do its syntax checking. I suspect settings from my .ycm_extra_conf.py are not being applied the way I think they are, or YouCompleteMe is using a compiler I'm not expecting, or something along those lines. If I could just see the command line YouCompleteMe is using when it compiles the file, I think there's a good chance I could diagnose my problem.

Does anyone know how to show the command line YouCompleteMe is using?

  • 1
    ask at YouCompleteMe issue tracker? Commented Oct 15, 2016 at 7:55
  • 1
    Yes, I may need to do that. I find the StackExchange format much more effective than digging through issue trackers, though, so I thought I'd ask here for the future benefit of anyone else who has the same problem. If nobody here knows, I'll try to find an answer there and report back here.
    – Josh
    Commented Oct 17, 2016 at 15:04

1 Answer 1


Digging through the ycm-users Google group, I found a post by someone else who was trying to debug their .ycm_extra_conf.py flag settings and was using :YcmDebugInfo to get information about the flags being used by YouCompleteMe to compile their file.

As documented here, :YcmDebugInfo "...will print out various debug information for the current file. Useful to see what compile commands will be used for the file if you're using the semantic completion engine". So... clearly I did not RTFM.

:YcmDebugInfo was enough for me to diagnose my problem and debug some changes I'd made to my .ycm_extra_conf.py.

  • 1
    If anyone else has a better answer -- mine does not actually show the command line YouCompleteMe is using, as I'd originally asked -- I'll happily choose their answer over my own.
    – Josh
    Commented Oct 17, 2016 at 21:02
  • I'm using YCM with clangd. Invoking :YcmDebugInfo when in the buffer for the source file gives me the paths of the 'Clangd logfiles' (just one actually). These files hold the commands that clangd runs for compiling the source file.
    – smichak
    Commented Dec 29, 2021 at 14:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.