michael@0: # Debugger.Source michael@0: michael@0: A `Debugger.Source` instance represents a piece of JavaScript source michael@0: code: its properties provide the source code itself as a string, and michael@0: describe where it came from. Each [`Debugger.Script`][script] instance refers to michael@0: the `Debugger.Source` instance holding the source code from which it was michael@0: produced. michael@0: michael@0: If a single piece of source code contains both top-level code and michael@0: function definitions, perhaps with nested functions, then the michael@0: [`Debugger.Script`][script] instances for those all refer to the same michael@0: `Debugger.Source` instance. Each script indicates the substring of the michael@0: overall source to which it corresponds. michael@0: michael@0: A `Debugger.Source` instance may represent only a portion of a larger michael@0: source document. For example, an HTML document can contain JavaScript in michael@0: multiple `