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

Marcel Schaible via cfe-dev cfe-dev at lists.llvm.org
Thu Jul 13 10:49:25 PDT 2017


Your proposed solution with "-v" or "-###" works fine.

Thanks for your help

Marcel
Am 13.07.2017 um 19:23 schrieb Keane, Erich:
> Most debuggers have a setting as to whether to follow forks or not.  GDB for example has 'set follow-fork-mode ...'
>
> MVSC has this plugin available as a power tool to do this: https://blogs.msdn.microsoft.com/devops/2014/11/24/introducing-the-child-process-debugging-power-tool/
>
> Alternatively, you can do "clang <compile command> -### "to see the command handed to that child process.  You can then debug THAT instead.
>
> -----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 10:17 AM
> 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