1. Compile the filter
2. Build in debug mode
3. register the filter: the console CD to the DEBUG directory of the project, that is, the filter (. ax file) directory, XX:> regsvr32 contrast. ax. The registration is successful. Otherwise, check
4. In vs, select the path of graphedit.exe under the executable file name, as shown in the following figure:
Alternatively, you can directly set the project properties as follows:
After running, you can select "yes" in the following prompt window.
5. Create the graph in graphedit:
Graphedit.exe menu-graph-Insert filter-double-click the filter to be debugged to add it to graph.
You can simply select render file from the File menu. If the filter is correct and can be added to the chain normally, graph will automatically create a complete file, for example:
6. breakpoint debugging in vs. In fact, debugging can be started from adding a filter. For example, you can add a breakpoint on the createinstance function of the filter.
DirectShow filter debugging procedure