The TIAX library can be built as described in exporting SIMATIC AX libraries to TIA Portal. This will yield a library without debug-symbols. The library must be created with debug-symbols before it can be debugged. This involves adding the following snippet to the apax.yml file.
variables:
APAX_BUILD_ARGS:
- "--debug"
Once the library has been built, it must be integrated into your TIA Portal project and downloaded to a PLC. The debug-symbols will then be present on the PLC and debugging can begin.
Warning
Debugging will not work for AX blocks in the main Program Blocks folder or if a block has been manually
renamed in the TIA Portal project.
NOTICE
To debug AX blocks, add them to a software unit in your TIA Portal project.