changing debug workflow on addResource