Hi, Lim,
Can you use Freemaster tools to establish a GUI so that you can monitor the variables and control the application while the target board is running.
This is Freemaster tools website:
FreeMASTER Run-Time Debugging Tool|NXP
You can download and install the Freemaster tools on your PC, there are a lot of DOCs which introduces how to use Freemaster tools.
Hope it can help you
BR
Xiangjun Rong