Venkman Internals

  • Revision slug: Venkman_Internals
  • Revision title: Venkman Internals
  • Revision id: 187167
  • Created:
  • Creator: Nickolay
  • Is current revision? No
  • Comment

Revision Content

Start with Venkman Information.

Notes on Venkman source code. As with any complex application, aspects of the design may not be clear for new readers of the source. These notes are written by such readers: as you learn please correct any errors.

Questions

Why can't breakpoints be set on some source lines some of the time?

Sometimes the source has small ticks in the margin for every executable line in my JavaScript. Sometimes these ticks are missing on some or all lines of a file. Only lines with tick marks seem to break point properly.

{{wiki.template('Named-source', [ "extensions/venkman/resources/content/venkman-views.js", "venkman-views.js" ])}}

Views are the panels shown within the venkman window. For example, the "Open Windows" view shows the browser's windows.

{{wiki.template('Named-source', [ "extensions/venkman/resources/content/venkman-records.js", "venkman-records.js" ])}}

A "record" seems to be data underlying a view. For example, FrameRecord represents a JavaScript stack frame.

WindowRecord

Representation of the open windows.

  • FileContainerRecord - List of script tags found in the parent record's window.document property.
    • To obtain the antecedent files: doc.getElementsByTagName("script");
    • then extract the URLs from the src attributes.

Revision Source

<p>Start with <a href="en/Venkman">Venkman</a> Information.
</p><p>Notes on Venkman source code.  As with any complex application, aspects of the design may not be clear for new readers of the source. These notes are written by such readers: as you learn please correct any errors.
</p>
<h3 name="Questions"> Questions </h3>
<p><i>Why can't breakpoints be set on some source lines some of the time?</i>
</p><p>Sometimes the source has small ticks in the margin for every executable line in my JavaScript.  Sometimes these ticks are missing on some or all lines of a file. Only lines with tick marks seem to break point properly.
</p>
<h3 name="Named-sourceextensions.2Fvenkman.2Fresources.2Fcontent.2Fvenkman-views.jsvenkman-views.js"> {{wiki.template('Named-source', [ "extensions/venkman/resources/content/venkman-views.js", "venkman-views.js" ])}} </h3>
<p>Views are the panels shown within the venkman window.  For example, the "Open Windows" view shows the browser's windows.
</p>
<h3 name="Named-sourceextensions.2Fvenkman.2Fresources.2Fcontent.2Fvenkman-records.jsvenkman-records.js"> {{wiki.template('Named-source', [ "extensions/venkman/resources/content/venkman-records.js", "venkman-records.js" ])}} </h3>
<p>A "record" seems to be data underlying a view. For example, <code>FrameRecord</code> represents a JavaScript stack frame.
</p>
<h4 name="WindowRecord"> WindowRecord </h4>
<p>Representation of the open windows.
</p>
<ul><li> <code>FileContainerRecord</code> - List of script tags found in the parent record's <code>window.document</code> property.
<ul><li> To obtain the antecedent files:   <code>doc.getElementsByTagName("script");</code>
</li><li> then extract the URLs from the <code>src</code> attributes.
</li></ul>
</li></ul>
Revert to this revision