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 cf0bedd commit fafb0b1Copy full SHA for fafb0b1
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
use tracing::debug;
6
7
use crate::connection::Connection;
@@ -59,3 +61,12 @@ impl CairoDebugger {
59
61
Ok(())
60
62
}
63
64
+
65
+impl Drop for CairoDebugger {
66
+ fn drop(&mut self) {
67
+ // TODO: Add error tracing
68
+ // TODO: Send correct exit code
69
+ self.connection.send_event(Terminated(None)).ok();
70
+ self.connection.send_event(Exited(ExitedEventBody { exit_code: 0 })).ok();
71
+ }
72
+}
0 commit comments