Display DEBUG message payload on a custom FlyView

Hello, I’d like to extend the functionality of QGroundControl by adding a plugin that allows displaying the payload of DEBUG messages received from PX4 through MAVLink in a custom widget in my flyview. I generated succesfully the debug message and received on QGC by simply modifying the mavros plugin “debug_value.cpp”. I’ve also read that instead of creating a plugin, I could directly work on the Vehicle.h class for receiving MAVLink debug messages. So, I’m wondering which approach is the right one to follow. Please note that I’m not very skilled at doing these things. How can I proceed? Is there any example code or steps you could provide?