This guide covers debugging ADTF Filters in Visual Studio. After reading this guide, you will know:
In the Data Generator Filter Tutorial we created a Filters to generate and send data samples. In the Data Processor Filter Tutorial we created a Filters that receives data samples and uses them to calculate a new data sample. In the ADTF Project Tutorial we created a project with the Configuration Editor. The project contains an ADTF Session which you can start using the ADTF Launcher. The ADTF Session references an ADTF Graph file which contains a Filter Graph that makes use of our two new Filters. Now we want to debug our Filters in Visual Studio.
Open the Visual Studio solution containing the Filters you want to debug and
open the Visual Studio
Strg + Alt + Lto open the Solution Explorer.
Find the Filter that you want to debug
and open its properties by right clicking on the project.
For example the
We need to edit
Command we specify the path of the program to execute when
debugging this Filter. We want to run our previously created ADTF Session and
therefore need to start the
adtf_launcher located in:
Command Arguments we use:
Finally we need to set our project as "Startup Project" in the
and set a break point somewhere in our Filter code.
Now we can start the
Local Windows Debugger and debug our Filter.
We can edit our ADTF Session in the Configuration Editor
and see the Filter's behaviour change when we restart the debugger.
For example if we change the
velocity_change_rate property of the
Tutorial Filter Data Generator 1 object to 3, the console
Strg + Sin the Configuration Editor and restart the debugger. Otherwise changes won't be recognized.
Alternatively, we can run an ADTF Session using the Configuration Editor and use Visual Studio to attach to the process and debug it.
To do so, open the process dialog in Debug/Attach and choose the
Have a look at the Signal Provider Filter to see how to create signals and display them in a signal view.