set debug_pid to the surface