1. A method for debugging dynamically generated code of an application, the method comprising: receiving at a debugging component, executing on a computer comprising a processor and memory, a script chunk comprising a portion of code of the application; extracting tag content from a script tag of a source document associated with the application; comparing the script chunk to the extracted tag content to determine if the script chunk is associated with code dynamically generated during execution of the application; and storing the script chunk in a separate document when the script chunk is associated with dynamically generated code.