The question
Which tools or code constructs (like defines) are the ones that should be used in this area and how to get them to work? Is there something I as a new person to media foundation should do before asking my question here to avoid simple mistakes?
The question is not "what is your favorite tool, lets fight over who is right" but simply, in regards to this media foundation framework, which options are according your expertise in the area worth considering for debugging and how do I use them?
Background to why I am asking this
Looking around on stackoverflow it seems that some questions are asked without knowledge of how to properly debug Media Foundation applications. I some cases a specific question gets an answer that states that OP should use MFTrace 1, 2. I also belive that my earlier questions here would have been helped out by using proper debugging tools or traces specific to media foundation.
Things I as someone new to this framework have encountered
I myself have not even been able to get MFTrace or Event Viewer to work, both tools that are mentioned in the official media foundation blog.
The documentation for how to get the MFTrace is lacking, is it only available in the old win 7 SDK on .NET 4.0 which is referred to here? Or can one use a newer SDK? Installing the older win 7 SDK involves some pain points on windows 10 (first change regedit values, how to do that, new error -> SO suggest to look at the log and maybe uninstall any existing Visual C++ 2010 redistrubutable.) It would be nice to know if this is something you have to go through, in which case I will, or if MFTrace can be found elsewhere.
I did not get any logs from the Event Viewer. But maybe one should skip that tool altogether and only use MFTrace since the official blog says the following?
However, MFTrace is much more powerful, and collects way more information, than Event viewer. source
Besides tools, is there no?
#define MF_TRACE_LEVEL 15
In this ms blog post they mention EventWriteString
and a few TRACE_LEVEL
defines. Is this something that is useful outside MFTrace?