devalang_core/core/debugger/
mod.rs1pub mod lexer;
2pub mod module;
3pub mod preprocessor;
4pub mod store;
5
6use std::io::Write;
7
8pub struct Debugger {}
9
10impl Debugger {
11 pub fn new() -> Self {
12 Debugger {}
13 }
14
15 pub fn write_log_file(&self, path: &str, filename: &str, content: &str) {
16 std::fs::create_dir_all(path).expect("Failed to create directory");
17
18 let file_path = format!("{}/{}", path, filename);
19 let mut file = std::fs::File::create(file_path).expect("Failed to create file");
20
21 file.write_all(content.as_bytes())
22 .expect("Failed to write to file");
23 }
24}