hi You can debug it with static variables. After compile the kernel, you can see the address of this static variable in System.map and when the kernel runs you can see the value of this variable in xmd debug tool.