Browse Source

🧑‍💻 Add Sim debug with lldb

Scott Lahteine 2 years ago
parent
commit
d60a280bc5
1 changed files with 13 additions and 2 deletions
  1. 13
    2
      buildroot/share/PlatformIO/debugging/launch.json

+ 13
- 2
buildroot/share/PlatformIO/debugging/launch.json View File

25
             "svdFile": "${env:HOME}/.platformio/platforms/ststm32@12.1.1/misc/svd/STM32F40x.svd",
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
             "request": "launch",
29
             "request": "launch",
30
             "type": "cppdbg",
30
             "type": "cppdbg",
31
             "cwd": "${workspaceRoot}",
31
             "cwd": "${workspaceRoot}",
32
+            "program": ".pio/build/simulator_macos_debug/debug/MarlinSimulator",
32
             //"program": ".pio/build/simulator_linux_debug/MarlinSimulator",
33
             //"program": ".pio/build/simulator_linux_debug/MarlinSimulator",
33
             //"program": ".pio/build/simulator_windows/MarlinSimulator",
34
             //"program": ".pio/build/simulator_windows/MarlinSimulator",
34
-            "program": ".pio/build/simulator_macos_debug/MarlinSimulator",
35
             "miDebuggerPath": "/opt/local/bin/ggdb",
35
             "miDebuggerPath": "/opt/local/bin/ggdb",
36
             "MIMode": "gdb"
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…
Cancel
Save