Add debug.activate() to activate the current application target