Debugging Jasmine Specs using VSCode
<p>Is there any way I can debug my code (Node.js) and jasmine tests through VS Code?
I have a spec in which I'm creating a spy, but my assertion that the spy should be called is returning false, even though when I invoke the function it calls within the spec manually it does run in to that code.</p>

<p>I've tried F5'ing the application to attach a debugger to the application which starts up an express server (that i've been using for testing until now) and then simply running <code>jasmine</code> from the command prompt, but no breakpoints are hit.</p>

<p>As an example of what I'm doing in the spec, I'm setting up the spy as follows:</p>

<pre><code>var response = {
            tell: function(value) {
                console.log("inside response.tell spy");
            }
        };
spyOn(response, "tell");
</code></pre>

<p>Invoking my function, passing in the response object and then adding my expectation:</p>

<pre><code>expect(response.tell).toHaveBeenCalled();
</code></pre>

<p>But the expectation fails.</p>

<p>Thanks</p>