How to check my watchdog timer routine is working or not practically?
Have your watchdog routine do something recognisable - eg, light a LED or toggle a port pin - then put a deliberate infinite loop in your main code...
If you have an emulator or on-chip debug, you could set a breakpoint in the watchdog routine...