We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CairoDebugger
1 parent 02d7470 commit d52035dCopy full SHA for d52035d
src/debugger.rs
@@ -1,5 +1,7 @@
1
use anyhow::{Result, bail};
2
use cairo_vm::vm::vm_core::VirtualMachine;
3
+use dap::events::ExitedEventBody;
4
+use dap::prelude::Event::{Exited, Terminated};
5
6
use crate::connection::Connection;
7
use crate::debugger::handler::{HandleResult, NextAction};
@@ -61,3 +63,12 @@ impl CairoDebugger {
61
63
log::init_logging()
62
64
}
65
66
+
67
+impl Drop for CairoDebugger {
68
+ fn drop(&mut self) {
69
+ // TODO: Add error tracing
70
+ // TODO: Send correct exit code
71
+ self.connection.send_event(Terminated(None)).ok();
72
+ self.connection.send_event(Exited(ExitedEventBody { exit_code: 0 })).ok();
73
+ }
74
+}
0 commit comments