Code to enable remote debugging on device added, but doesn't work as expected on sim.