Added debug trace function. Print response code and notify payload when debug mode is enabled.