[cfe-dev] How to debug a clang plugin with Visual Studio?

Shoaib Meenai via cfe-dev cfe-dev at lists.llvm.org
Thu Jul 13 10:21:28 PDT 2017


I've not debugged plugins specifically, but in general, if you invoke clang
with -v or -###, it should give you a clang -cc1 command. You can debug that
command instead of your original one, and it should avoid any further process
spawning (or at least it does when plugins aren't involved).

On 7/13/17, 10:16 AM, "cfe-dev on behalf of Marcel Schaible via cfe-dev" <cfe-dev-bounces at lists.llvm.org on behalf of cfe-dev at lists.llvm.org> wrote:

    Dear community,
    
    to be more specific:
    
    clang.exe spanws another process of it self and then loads the plugin dll.
    
    This is a real pain to debug. Is there a clang option to ease debugging 
    of plugins?
    
    Any idea appreciated...
    
    Thanks
    
    Marcel
    
    
    Am 13.07.2017 um 18:09 schrieb Marcel Schaible via cfe-dev:
    > Hello,
    >
    > has anybody experience with debugging a clang plugin with Visual Studio?
    >
    > Thanks
    >
    > Marcel
    >
    > _______________________________________________
    > cfe-dev mailing list
    > cfe-dev at lists.llvm.org
    > https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_cfe-2Ddev&d=DwIGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=AqDh226SIR8ASVq0eVOWojO-GaROFoVPYpAclxBVJao&s=z-Ru3yQQKXJ5R1bxkZ6bqoLhjJulzhoqR7dF6TMl7bQ&e= 
    
    _______________________________________________
    cfe-dev mailing list
    cfe-dev at lists.llvm.org
    https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_cfe-2Ddev&d=DwIGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=AqDh226SIR8ASVq0eVOWojO-GaROFoVPYpAclxBVJao&s=z-Ru3yQQKXJ5R1bxkZ6bqoLhjJulzhoqR7dF6TMl7bQ&e= 
    



More information about the cfe-dev mailing list