Should Create JavasScript Debug Terminal work for the serverless framework? #492
Labels
feature-request
Request for new features or functionality
verification-needed
Verification of issue is requested
verified
Verification succeeded
Milestone
I'm using the Serverless Framework to invoke local functions during testing via an NPM script and am not sure if this is supposed to work out of the box like normal node processes.
From my NPM scripts (full code at the repo):
Using version 2020.5.2917, either if I click on the Debug menu above my list of NPM scripts to run this one or if I launch Debug: Create JavaScript Debug Terminal and just run
npm run update:channels
, it doesn't seem to attach itself to the process or hit my breakpoint:The function just runs as if there was no breakpoint assigned.
Should it just work out of the box like this? I did notice it was listening on three different ports. Serverless also goes and compiles it via webpack first before it runs it.
On the other hand, if I launch it via this configuration in
.vscode/launch.json
it works:I have a number of NPM scripts that I might like to run from the Debug menu straight in the NPM script list rather than give them all entries in
launch.json
. Would this be possible given my setup?The text was updated successfully, but these errors were encountered: