DEPTHAI_WATCHDOG env variable is already available.
You may set it as such from powershell terminal (or specify it under Visual Studio, Debugging -> Environment:
$env:DEPTHAI_WATCHDOG = '0'
afterwards the device will have its WD disabled and you'll be able to debug your code without the device being reset. Note, a power cycle will be required if an unclean shutdown will happen with this mode enabled.