title: Why is 'this' undefined in the debugger but printable in a console.log?
body: <p>When setting a breakpoint on the <code>console.log</code> statement, why would <code>this</code> be undefined in the debugger but the statement print with no issues? Am I missing something in regards to scope here?</p>
  
  <pre><code>export class OptionsSidebarComponent {
  
    ... 
  
    public filters: Object = new Object();
  
    ... 
  
    public generateFilters() {
      for (let property in this.terms) {
        if (this.terms.hasOwnProperty(property) &amp;&amp; this.terms[property] !== null) {
  
          if (!this.filters.hasOwnProperty(this.productGroup.id)){
            this.filters[this.productGroup.id] = new Filters();
          }
  
          this.terms[property].forEach((term) =&gt; {
            console.log(this.filters);
          });
        }
      }
    }
  }
  </code></pre>