diff --git a/packages/api/src/console.ts b/packages/api/src/console.ts index f4b07274..3e1e8648 100644 --- a/packages/api/src/console.ts +++ b/packages/api/src/console.ts @@ -103,7 +103,7 @@ export class MiaoScriptConsole implements Console { } } if (this.sourceMaps[fileName]) { - var sourceMapping = this.sourceMaps[fileName].getSource(lineNumber, lineNumber); + var sourceMapping = this.sourceMaps[fileName].getSource(lineNumber, 25, true); if (sourceMapping) { if (lineNumber != sourceMapping.mapping.sourceLine) { fileName = fileName.replace(".js", ".ts");