How Do I Debug a Component? (Magic xpa 4.x)
You can debug component programs as you would any program in the project, but only if the component is defined as a module of the current project.
To add a module to the current project:
-
Go to Project->Add Module. A file selector window will appear.
-
Select the project (.edp file) you want to use.
Once you have the component on the Navigator module list, you can click on the module to open it and add breakpoints. The breakpoints will show up on the same breakpoint list with the breakpoints from the calling task. When you reach the breakpoint in the component, the current task will close, the component will open, and you will see the execution of the code within the component.