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

Ben Craig via cfe-dev cfe-dev at lists.llvm.org
Thu Jul 13 10:20:32 PDT 2017


Run whatever command you normally run, but with an extra "-v".  Clang will print out what command line to use for the sub-processes.

When debugging, use the command for the subprocess rather than normal top level command.

> -----Original Message-----
> From: cfe-dev [mailto:cfe-dev-bounces at lists.llvm.org] On Behalf Of Marcel
> Schaible via cfe-dev
> Sent: Thursday, July 13, 2017 12:17 PM
> To: cfe-dev at lists.llvm.org
> Subject: Re: [cfe-dev] How to debug a clang plugin with Visual Studio?
> 
> 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
> > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev


More information about the cfe-dev mailing list