Generate a "stacktrace" into JavaScript source code, finding the lines that start blocks and statements containing a given source pattern or line.