def NEW_DEBUG_FRAME(self, requestHeader):
if self.DEBUG_FLAG:  <EOL><INDENT>new_frame = [requestHeader, None, None, None]<EOL>if self._frameCount < self.DEBUG_FRAME_BUFFER_SIZE - <NUM_LIT:1>:  <EOL><INDENT>self._frameBuffer.append(new_frame)<EOL><DEDENT>else:<EOL><INDENT>self._frameBuffer[<NUM_LIT:0>] = new_frame  <EOL><DEDENT>self._frameCount = len(self._frameBuffer) - <NUM_LIT:1><EOL><DEDENT>
Initialize a debug frame with requestHeader
Frame count is updated and will be attached to respond header
The structure of a frame: [requestHeader, statusCode, responseHeader, raw_data]
Some of them may be None