@@ -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