From a553a2dbb977a2e9b9f882e8c18c458ca686fa0a Mon Sep 17 00:00:00 2001 From: Hubert Bugaj Date: Thu, 23 Oct 2025 13:11:27 +0200 Subject: [PATCH] chore: add debugging profile to Cargo.toml --- Cargo.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 04990d96f189..f92ebe5d3ed6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -269,6 +269,14 @@ rust2go = { workspace = true, features = ["build"] } debug = 0 split-debuginfo = "unpacked" +# Profile for interactive debugging sessions, e.g., with LLDB. +# Doesn't work with Go FFI - disable it with `FOREST_F3_SIDECAR_FFI_BUILD_OPT_OUT=1`. +[profile.debugging] +inherits = "dev" +debug = "full" +# This works on Linux. On other platforms, refer to https://doc.rust-lang.org/rustc/codegen-options/index.html#split-debuginfo +split-debuginfo = "off" + [profile.quick] inherits = "release" opt-level = 1