add debugger

This commit is contained in:
2026-03-24 13:40:16 +00:00
parent 71bb007499
commit cd68bb0d0a
10 changed files with 506 additions and 24 deletions
@@ -1,7 +1,7 @@
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum BootTarget {
Hub,
Cartridge { path: String, debug: bool },
Cartridge { path: String, debug: bool, debug_port: u16 },
}
impl Default for BootTarget {
@@ -14,7 +14,7 @@ impl LaunchHubStep {
}
pub fn on_update(&mut self, ctx: &mut PrometeuContext) -> Option<FirmwareState> {
if let BootTarget::Cartridge { path, debug } = ctx.boot_target {
if let BootTarget::Cartridge { path, .. } = ctx.boot_target {
match CartridgeLoader::load(path) {
Ok(cartridge) => {
// No caso de debug, aqui poderíamos pausar, mas o requisito diz