Merge pull request #1321 from mwalker33/desfire
[RRG-proxmark3.git] / .vscode / templates / launch_linux.json
blob5239c6bdad9de1b59de285f41146237b90b063e9
2     // Use IntelliSense to learn about possible attributes.
3     // Hover to view descriptions of existing attributes.
4     // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5     "version": "0.2.0",
6     "configurations": [
7         {
8             "name": "Client: (gdb) Build & Launch",
9             "type": "cppdbg",
10             "request": "launch",
11             "program": "${cwd}/client/proxmark3",
12             "args": ["${SerialPort}"], 
13             "stopAtEntry": false,
14             "cwd": "${workspaceFolder}",
15             "environment": [],
16             "externalConsole": false,
17             "MIMode": "gdb",
18             "setupCommands": [
19                 {
20                     "description": "Enable pretty-printing for gdb",
21                     "text": "-enable-pretty-printing",
22                     "ignoreFailures": true
23                 }
24             ],
25             "preLaunchTask": "client: Debug: clean & make",
26             "miDebuggerPath": "${DebuggerPath}"
27         },{
28             "name": "Client: (gdb) Attach",
29             "type": "cppdbg",
30             "request": "attach",
31             "program": "${cwd}/client/proxmark3",
32             //"processId": "${command:pickProcess}",
33             "processId": "${input:ProcessID}",
34             "MIMode": "gdb",
35             "setupCommands": [
36                 {
37                     "description": "Enable pretty-printing for gdb",
38                     "text": "-enable-pretty-printing",
39                     "ignoreFailures": true
40                 }
41             ]
42         },{
43             "name": "Firmware: (J-Link) Build & Launch",
44             "type": "cortex-debug",
45             "request": "launch",
46             "cwd": "${workspaceRoot}",
47             "preLaunchTask": "fullimage: clean & make debug",
48             "executable": "${workspaceRoot}/armsrc/obj/fullimage.elf",
49             "serverpath": "${JLinkServerPath}", 
50             "servertype": "jlink",
51             "device": "AT91SAM7S${DeviceMem}",
52             "interface": "jtag",
53             "serialNumber": "", //If you have more than one J-Link probe, add the serial number here.
54             "runToMain": false,
55             "armToolchainPath": "/usr/bin/"
56         }
57     ],
58     "inputs": [
59         {
60             // Using Extension "Tasks Shell Input" https://marketplace.visualstudio.com/items?itemName=augustocdias.tasks-shell-input
61             "id": "ProcessID",
62             "type": "command",
63             "command": "shellCommand.execute",
64             "args": {
65                 "command": "pgrep -n proxmark3",
66             }
67             
68         }
69     ]