From f6290082fd64b48e843e8a2fcc3d281558d83ea8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Jun 2026 18:18:30 +0000 Subject: [PATCH 1/2] Initial plan From d5f43b024527e15a1907a12dddb528bffdc1e1fb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Jun 2026 19:09:07 +0000 Subject: [PATCH 2/2] Set perf_event_paranoid=1 to enable rr debugger on WSL2 --- src/linux/init/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/linux/init/main.cpp b/src/linux/init/main.cpp index 8cc79c1fd2..80422730da 100644 --- a/src/linux/init/main.cpp +++ b/src/linux/init/main.cpp @@ -1253,6 +1253,11 @@ Return Value: return -1; } + if (WriteToFile("/proc/sys/kernel/perf_event_paranoid", "1\n") < 0) + { + return -1; + } + // // Set the hostname. //