Hello shrikantkoli1995,
I hope all is great with you. Thank you for using the NXP communities.
The flow chart below still applies, but in the application software each time before the watchdog normally needs to be triggered, the microcontroller pin needs to be checked again, and in case its level has changed, the watchdog mode needs to be changed as well (Autonomous mode for debugging, and no restrictions for the mode used without debugging).

I hope this information helps.
Regards,
David