mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
vscode
This commit is contained in:
parent
8d14b46232
commit
86ff6aebef
2 changed files with 122 additions and 6 deletions
55
.vscode/launch.json
vendored
Normal file
55
.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "(gdb) Attach",
|
||||||
|
"type": "cppdbg",
|
||||||
|
"request": "attach",
|
||||||
|
"program": "${cwd}/client/proxmark3",
|
||||||
|
//"processId": "${command:pickProcess}",
|
||||||
|
"processId": "${input:ProcessID}",
|
||||||
|
"MIMode": "gdb",
|
||||||
|
"setupCommands": [
|
||||||
|
{
|
||||||
|
"description": "Enable pretty-printing for gdb",
|
||||||
|
"text": "-enable-pretty-printing",
|
||||||
|
"ignoreFailures": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},{
|
||||||
|
"name": "(gdb) Build & Launch",
|
||||||
|
"type": "cppdbg",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${cwd}/client/proxmark3",
|
||||||
|
"args": ["/dev/ttyACM0"],
|
||||||
|
"stopAtEntry": false,
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"environment": [],
|
||||||
|
"externalConsole": false,
|
||||||
|
"MIMode": "gdb",
|
||||||
|
"setupCommands": [
|
||||||
|
{
|
||||||
|
"description": "Enable pretty-printing for gdb",
|
||||||
|
"text": "-enable-pretty-printing",
|
||||||
|
"ignoreFailures": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"preLaunchTask": "Debug: clean & make client",
|
||||||
|
"miDebuggerPath": "/usr/bin/gdb"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
// Using Extension "Tasks Shell Input" https://marketplace.visualstudio.com/items?itemName=augustocdias.tasks-shell-input
|
||||||
|
"id": "ProcessID",
|
||||||
|
"type": "command",
|
||||||
|
"command": "shellCommand.execute",
|
||||||
|
"args": {
|
||||||
|
"command": "pgrep -n proxmark3",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
73
.vscode/tasks.json
vendored
73
.vscode/tasks.json
vendored
|
@ -4,24 +4,85 @@
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "build",
|
"label": "Make all & run",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "make clean && make all -j$(nproc --all)",
|
"command": "make -j && ./pm3",
|
||||||
"problemMatcher": [
|
"problemMatcher": [
|
||||||
"$gcc"
|
"$gcc"
|
||||||
]
|
],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "flash fullimage",
|
"label": "Make TARGET",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "sudo ./pm3-flash-fullimage",
|
"command": "make ${input:componentType} -j",
|
||||||
|
"problemMatcher": [
|
||||||
|
"$gcc"
|
||||||
|
],
|
||||||
|
"group": "build",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Debug: make client",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make client -j DEBUG=1",
|
||||||
|
"problemMatcher": [
|
||||||
|
"$gcc"
|
||||||
|
],
|
||||||
|
"group": "build",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Debug: clean & make client",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make client/clean && make client -j DEBUG=1",
|
||||||
|
"problemMatcher": [
|
||||||
|
"$gcc"
|
||||||
|
],
|
||||||
|
"group": "build",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Flash fullimage",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "./pm3-flash-fullimage",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "FLASH BOOTROM",
|
"label": "FLASH BOOTROM",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "sudo ./pm3-flash-bootrom",
|
"command": "./pm3-flash-bootrom",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Run client",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "./pm3",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"dependsOn": [
|
||||||
|
"Release: build client"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"type": "pickString",
|
||||||
|
"id": "componentType",
|
||||||
|
"description": "What Makefile target do you want to execute?",
|
||||||
|
"options": [
|
||||||
|
"all",
|
||||||
|
"client",
|
||||||
|
"bootrom",
|
||||||
|
"fullimage",
|
||||||
|
"recovery",
|
||||||
|
"clean",
|
||||||
|
"install",
|
||||||
|
"uninstall",
|
||||||
|
"style",
|
||||||
|
"miscchecks",
|
||||||
|
"check",
|
||||||
|
],
|
||||||
|
"default": "all"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue