Skip to content

Commit ed9d61b

Browse files
committed
debugger
1 parent b6ff09e commit ed9d61b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ node_modules
77
.gradle
88
.idea
99
build
10-
server
10+
/debugger
11+
/server
1112
/package-lock.json

src/debugger/AttachDebugSession.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ export class AttachDebugSession extends EmmyDebugSession implements ExprEvaluato
6565
}
6666

6767
private initEnv(args: EmmyDebugArguments) {
68-
emmyArchExe = `${args.extensionPath}/server/windows/x86/emmy.arch.exe`;
69-
emmyLua = `${args.extensionPath}/server/Emmy.lua`;
68+
emmyArchExe = `${args.extensionPath}/debugger/windows/x86/emmy.arch.exe`;
69+
emmyLua = `${args.extensionPath}/debugger/Emmy.lua`;
7070
this.sourcePaths = args.sourcePaths;
7171
}
7272

@@ -80,7 +80,7 @@ export class AttachDebugSession extends EmmyDebugSession implements ExprEvaluato
8080
const isX86 = code === 1;
8181
const arch = isX86 ? "x86" : "x64";
8282
this.sendEvent(new OutputEvent(`Launch program with ${arch} debugger.\n`));
83-
const toolExe = `${args.extensionPath}/server/windows/${arch}/emmy.tool.exe`;
83+
const toolExe = `${args.extensionPath}/debugger/windows/${arch}/emmy.tool.exe`;
8484
const argList = [toolExe, "-m", "run", "-c", args.program, "-e", emmyLua, '-w', args.workingDir, "--console", "true"];
8585
if (args.arguments.length > 0) {
8686
argList.push("-a", args.arguments.join(" "));
@@ -98,7 +98,7 @@ export class AttachDebugSession extends EmmyDebugSession implements ExprEvaluato
9898
cp.exec(`${emmyArchExe} arch -pid ${args.pid}`, (err, stdout) => {
9999
const isX86 = stdout === "1";
100100
const arch = isX86 ? "x86" : "x64";
101-
const toolExe = `${args.extensionPath}/server/windows/${arch}/emmy.tool.exe`;
101+
const toolExe = `${args.extensionPath}/debugger/windows/${arch}/emmy.tool.exe`;
102102
let argList = [toolExe, "-m", "attach", "-p", args.pid, "-e", emmyLua];
103103
this.runDebugger(argList.join(" "), args, response);
104104
});

0 commit comments

Comments
 (0)