Please update doc for this function, it still has text related to `isDebug`. See line 42