瀏覽代碼

🧑‍💻 Add Sim debug with lldb

Scott Lahteine 2 年之前
父節點
當前提交
d60a280bc5
共有 1 個檔案被更改,包括 13 行新增2 行删除
  1. 13
    2
      buildroot/share/PlatformIO/debugging/launch.json

+ 13
- 2
buildroot/share/PlatformIO/debugging/launch.json 查看文件

@@ -25,15 +25,26 @@
25 25
             "svdFile": "${env:HOME}/.platformio/platforms/ststm32@12.1.1/misc/svd/STM32F40x.svd",
26 26
         },
27 27
         {
28
-            "name": "Debug Sim",
28
+            "name": "Launch Sim (ggdb)",
29 29
             "request": "launch",
30 30
             "type": "cppdbg",
31 31
             "cwd": "${workspaceRoot}",
32
+            "program": ".pio/build/simulator_macos_debug/debug/MarlinSimulator",
32 33
             //"program": ".pio/build/simulator_linux_debug/MarlinSimulator",
33 34
             //"program": ".pio/build/simulator_windows/MarlinSimulator",
34
-            "program": ".pio/build/simulator_macos_debug/MarlinSimulator",
35 35
             "miDebuggerPath": "/opt/local/bin/ggdb",
36 36
             "MIMode": "gdb"
37
+        },
38
+        {
39
+            "name": "Launch Sim (lldb)",
40
+            "request": "launch",
41
+            "type": "cppdbg",
42
+            "cwd": "${workspaceRoot}",
43
+            "program": ".pio/build/simulator_macos_debug/debug/MarlinSimulator",
44
+            //"program": ".pio/build/simulator_linux_debug/MarlinSimulator",
45
+            //"program": ".pio/build/simulator_windows/MarlinSimulator",
46
+            //"targetArchitecture": "arm64",
47
+            "MIMode": "lldb"
37 48
         }
38 49
     ]
39 50
 }

Loading…
取消
儲存