You could consider using the ``debug_linear_block_decoder.hpp`` layer here which also supports printing the encoded symbol being passed to the decoder as well as the decoding matrix.