Skip to content

Commit 5a73ec7

Browse files
committed
修复launch 调试未能正确关闭程序的问题
1 parent 2ca5923 commit 5a73ec7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/com/tang/intellij/lua/debugger/emmyLaunch/EmmyLaunchDebugProcess.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ class EmmyLaunchDebugProcess(session: XDebugSession, val configuration: EmmyLaun
158158
"\"${path}\"",
159159
"-work",
160160
"\"${configuration.workingDirectory}\"",
161-
"-block-on-exit",
162161
"-exe",
163162
"\"${configuration.program}\"",
164163
"-debug-port",
@@ -225,6 +224,11 @@ class EmmyLaunchDebugProcess(session: XDebugSession, val configuration: EmmyLaun
225224
}
226225
}
227226

227+
override fun onDisconnect() {
228+
super.onDisconnect()
229+
client?.close()
230+
}
231+
228232
override fun onReceiveMessage(cmd: MessageCMD, json: String) {
229233
if (cmd == MessageCMD.AttachedNotify) {
230234
val msg = Gson().fromJson(json, AttachedNotify::class.java)

0 commit comments

Comments
 (0)