Skip to content

Commit cb162a0

Browse files
committed
try fix launch debug
1 parent ceb3e73 commit cb162a0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/debugger/launch/EmmyLaunchDebugSession.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class EmmyLaunchDebugSession extends EmmyDebugSession {
7272
private async detectArch(): Promise<WinArch> {
7373
const cwd = `${this.extensionPath}/debugger/emmy/windows/x64`;
7474
const args = [
75-
'emmy_tool.exe',
75+
`${this.extensionPath}/debugger/emmy/windows/x86/emmy_tool.exe`,
7676
'arch_file',
7777
`\"${this.program}\"`
7878
];
@@ -110,7 +110,7 @@ export class EmmyLaunchDebugSession extends EmmyDebugSession {
110110

111111
args.push(...(<string[]>this.arguments));
112112
return new Promise((r, c) => {
113-
const childProcess = cp.spawn(`emmy_tool.exe`, args, {
113+
const childProcess = cp.spawn(`${cwd}/emmy_tool.exe`, args, {
114114
cwd: cwd,
115115
windowsHide: false
116116
});
@@ -156,7 +156,7 @@ export class EmmyLaunchDebugSession extends EmmyDebugSession {
156156

157157
args.push(...(<string[]>this.arguments));
158158
return new Promise((r, c) => {
159-
const childProcess = cp.spawn(`emmy_tool.exe`, args, {
159+
const childProcess = cp.spawn(`${cwd}/emmy_tool.exe`, args, {
160160
cwd: cwd,
161161
windowsHide: false
162162
});

0 commit comments

Comments
 (0)