# How to build and run a "Tracer" version of a plugin?

**URL:** <https://iplug2.discourse.group/t/how-to-build-and-run-a-tracer-version-of-a-plugin/487>\
**Category:** Windows\
**Created:** [16 October 2021 01:25 UTC](https://iplug2.discourse.group/t/how-to-build-and-run-a-tracer-version-of-a-plugin/487 "2021-10-16T01:25:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RexMartin2](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@RexMartin2](https://iplug2.discourse.group/u/RexMartin2)\
**Post date:** [16 October 2021 01:25 UTC](https://iplug2.discourse.group/t/how-to-build-and-run-a-tracer-version-of-a-plugin/487/1 "2021-10-16T01:25:27Z")

</div>

On another thread Alex asked if I could build a “Tracer” version of my ailing plugin so he could see the activity logged at run time.

I compiled a “Tracer” version in VS2019 but Reaper does not recognize the plugin. In other DAWs the tracer version crashes the DAW on start up. Release builds of the same plugin code load fine.

I have never worked with “Tracer” builds before and I can’t find anything about them in the VS2019 help info - or even on Google for that matter. Can someone advise the process?

---

<div class="post-metadata">

**Author:** ![olilarkin](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/olilarkin/32/2_2.png) [@olilarkin](https://iplug2.discourse.group/u/olilarkin)\
**Post date:** [17 October 2021 11:47 UTC](https://iplug2.discourse.group/t/how-to-build-and-run-a-tracer-version-of-a-plugin/487/2 "2021-10-17T11:47:13Z")

</div>

how nice i am

> **[Logging with TRACER builds · iPlug2/iPlug2 Wiki](https://github.com/iPlug2/iPlug2/wiki/Logging-with-TRACER-builds)**
>
> C++ Audio Plug-in Framework for desktop, mobile and web \[PRE-RELEASE\] - Logging with TRACER builds · iPlug2/iPlug2 Wiki

---

<div class="post-metadata">

**Author:** ![RexMartin2](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@RexMartin2](https://iplug2.discourse.group/u/RexMartin2)\
**Post date:** [17 October 2021 18:53 UTC](https://iplug2.discourse.group/t/how-to-build-and-run-a-tracer-version-of-a-plugin/487/3 "2021-10-17T18:53:43Z")

</div>

Thank you for writing this up as I am sure it will be helpful to others as well.

However it doesn’t work here on Win 10. The Tracer build of iPlugEffect - direct from the iPlug2 package - gets blacklisted in Reaper and crashes other DAWs during plugin scan on startup.

---

<div class="post-metadata">

**Author:** ![olilarkin](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/olilarkin/32/2_2.png) [@olilarkin](https://iplug2.discourse.group/u/olilarkin)\
**Post date:** [17 October 2021 19:34 UTC](https://iplug2.discourse.group/t/how-to-build-and-run-a-tracer-version-of-a-plugin/487/4 "2021-10-17T19:34:56Z")

</div>

Yeah it seems tracer builds with VST2 is broken on windows. The App build and VST3 seems to be OK

---

<div class="post-metadata">

**Author:** ![kylotan](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kylotan](https://iplug2.discourse.group/u/kylotan)\
**Post date:** [17 April 2022 11:08 UTC](https://iplug2.discourse.group/t/how-to-build-and-run-a-tracer-version-of-a-plugin/487/5 "2022-04-17T11:08:34Z")

</div>

The problem is that the logging tries to write directly to the root of the C:\ drive, which on many Windows systems is not writeable by typical user processes. This gives a null file pointer which causes a crash as soon as the first time `Trace` gets to `fprintf(sLogFile.mFP`.

If you look for the line in IPlugLogger.h that says “TODO: check windows logFilePath” you can change the 2nd string literal there to a directory of your choice.

---

<div class="post-metadata">

**Author:** ![RexMartin2](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@RexMartin2](https://iplug2.discourse.group/u/RexMartin2)\
**Post date:** [18 April 2022 12:25 UTC](https://iplug2.discourse.group/t/how-to-build-and-run-a-tracer-version-of-a-plugin/487/6 "2022-04-18T12:25:49Z")

</div>

Thank you for posting this info. Will take a look. 👍
