Patent ID: 8719797

Claim:
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; storing the script chunk in a separate document when the script chunk is associated with dynamically generated code, setting a breakpoint in the script chunk of the dynamically generated code in the separate document comprising: displaying the script chunk stored in the separate document; receiving an indication of a line of code in the separate document; and setting the breakpoint at the line of code in the separate document for pausing execution of the application when execution reaches the line of code of the dynamically generated code; and associating line numbers of the script chunk with line numbers of the source document when the script chunk is not associated with dynamically generated.