env node.js 7.7.1
Build #WS-171.3780.79, built on March 17, 2017
JRE: 1.8.0_112-release-736-b13 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.3
below is my WS JS setup screen.
Here are screenshots for single stepping (F8) over my code. The code works correctly when run without debugging but I got there by printouts as the WebStorm debugger was no good. The correct execution steps are: 1480, 1486, 1488, 1489 (and may be 1490 and 1492 which are the scope closing braces). Screenshots 1-7) show WebStorm debugger is all over the place and not helpful at all for debugging. The last screenshot (8.png) shows a next API call into this function where it stops on a comment line!