diff --git a/src/debugger/ExecMgr.ts b/src/debugger/ExecMgr.ts index 62deddf..597c779 100644 --- a/src/debugger/ExecMgr.ts +++ b/src/debugger/ExecMgr.ts @@ -44,6 +44,9 @@ export class ExecMgr { shell: true }; var luaExePath = path.join(fileInfos[0], "res/debug", process.platform, "lua"); + if(this.args.exePath){ + luaExePath = this.args.exePath; + } var luaStartProc = child_process.exec(luaExePath + ' -e "' + pathStr + '"'); return luaStartProc; } @@ -109,4 +112,4 @@ export class ExecMgr { } return luaStartProc; } -} \ No newline at end of file +}