mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
Merge pull request #1063 from Gator96100/master
Visual Studio Code client debugging on Windows
This commit is contained in:
commit
0dc1ba83f8
2 changed files with 112 additions and 3 deletions
31
.vscode/launch.json
vendored
31
.vscode/launch.json
vendored
|
@ -18,13 +18,21 @@
|
||||||
"text": "-enable-pretty-printing",
|
"text": "-enable-pretty-printing",
|
||||||
"ignoreFailures": true
|
"ignoreFailures": true
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"windows": {
|
||||||
|
"processId": "${input:ProcessIDWindows}",
|
||||||
|
"miDebuggerPath": "${workspaceFolder}/../../msys2/mingw64/bin/gdb.exe",
|
||||||
|
"externalConsole": true,//for ProxSpace externalConsole=true is required, because the internal cosole stops updating after a while
|
||||||
|
"environment": [{
|
||||||
|
"name": "PATH","value": "${workspaceFolder}/../../msys2/mingw64/bin;${workspaceFolder}/../../msys2/usr/local/bin;${workspaceFolder}/../../msys2/usr/bin;${workspaceFolder}/../../msys2/bin"
|
||||||
|
}]
|
||||||
|
}
|
||||||
},{
|
},{
|
||||||
"name": "(gdb) Build & Launch",
|
"name": "(gdb) Build & Launch",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${cwd}/client/proxmark3",
|
"program": "${cwd}/client/proxmark3",
|
||||||
"args": ["/dev/ttyACM0"],
|
"args": ["/dev/ttyACM0"],
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
"environment": [],
|
"environment": [],
|
||||||
|
@ -38,7 +46,15 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"preLaunchTask": "client: Debug: clean & make",
|
"preLaunchTask": "client: Debug: clean & make",
|
||||||
"miDebuggerPath": "/usr/bin/gdb"
|
"miDebuggerPath": "/usr/bin/gdb",
|
||||||
|
"windows": {
|
||||||
|
"args": ["COM5"],
|
||||||
|
"miDebuggerPath": "${workspaceFolder}/../../msys2/mingw64/bin/gdb.exe",
|
||||||
|
"externalConsole": true,//for ProxSpace externalConsole=true is required, because the internal cosole stops updating after a while
|
||||||
|
"environment": [{
|
||||||
|
"name": "PATH","value": "${workspaceFolder}/../../msys2/mingw64/bin;${workspaceFolder}/../../msys2/usr/local/bin;${workspaceFolder}/../../msys2/usr/bin;${workspaceFolder}/../../msys2/bin"
|
||||||
|
}]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"inputs": [
|
"inputs": [
|
||||||
|
@ -50,6 +66,15 @@
|
||||||
"args": {
|
"args": {
|
||||||
"command": "pgrep -n proxmark3",
|
"command": "pgrep -n proxmark3",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
},{
|
||||||
|
"id": "ProcessIDWindows",
|
||||||
|
"type": "command",
|
||||||
|
"command": "shellCommand.execute",
|
||||||
|
"args": {
|
||||||
|
"command": "${workspaceFolder}/../../runme64.bat -c \"cat /proc/$(pgrep -n proxmark3)/winpid\"",
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
84
.vscode/tasks.json
vendored
84
.vscode/tasks.json
vendored
|
@ -7,6 +7,18 @@
|
||||||
"label": "all: Make & run",
|
"label": "all: Make & run",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "make -j && ./pm3",
|
"command": "make -j && ./pm3",
|
||||||
|
"windows": {
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}/../..",
|
||||||
|
"shell": {
|
||||||
|
"executable": "${workspaceFolder}/../../runme64.bat",
|
||||||
|
"args": [
|
||||||
|
"-c \"cd ${workspaceFolderBasename} &&"
|
||||||
|
],
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"problemMatcher": [
|
"problemMatcher": [
|
||||||
"$gcc"
|
"$gcc"
|
||||||
],
|
],
|
||||||
|
@ -19,6 +31,18 @@
|
||||||
"label": "choose: Make",
|
"label": "choose: Make",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "make ${input:componentType} -j",
|
"command": "make ${input:componentType} -j",
|
||||||
|
"windows": {
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}/../..",
|
||||||
|
"shell": {
|
||||||
|
"executable": "${workspaceFolder}/../../runme64.bat",
|
||||||
|
"args": [
|
||||||
|
"-c \"cd ${workspaceFolderBasename} &&"
|
||||||
|
],
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"problemMatcher": [
|
"problemMatcher": [
|
||||||
"$gcc"
|
"$gcc"
|
||||||
],
|
],
|
||||||
|
@ -28,6 +52,18 @@
|
||||||
"label": "client: Debug: make",
|
"label": "client: Debug: make",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "make client -j DEBUG=1",
|
"command": "make client -j DEBUG=1",
|
||||||
|
"windows": {
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}/../..",
|
||||||
|
"shell": {
|
||||||
|
"executable": "${workspaceFolder}/../../runme64.bat",
|
||||||
|
"args": [
|
||||||
|
"-c \"cd ${workspaceFolderBasename} &&"
|
||||||
|
],
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"problemMatcher": [
|
"problemMatcher": [
|
||||||
"$gcc"
|
"$gcc"
|
||||||
],
|
],
|
||||||
|
@ -37,6 +73,18 @@
|
||||||
"label": "client: Debug: clean & make",
|
"label": "client: Debug: clean & make",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "make client/clean && make client -j DEBUG=1",
|
"command": "make client/clean && make client -j DEBUG=1",
|
||||||
|
"windows": {
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}/../..",
|
||||||
|
"shell": {
|
||||||
|
"executable": "${workspaceFolder}/../../runme64.bat",
|
||||||
|
"args": [
|
||||||
|
"-c \"cd ${workspaceFolderBasename} &&"
|
||||||
|
],
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"problemMatcher": [
|
"problemMatcher": [
|
||||||
"$gcc"
|
"$gcc"
|
||||||
],
|
],
|
||||||
|
@ -46,18 +94,54 @@
|
||||||
"label": "fullimage: Make & Flash",
|
"label": "fullimage: Make & Flash",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "make fullimage && ./pm3-flash-fullimage",
|
"command": "make fullimage && ./pm3-flash-fullimage",
|
||||||
|
"windows": {
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}/../..",
|
||||||
|
"shell": {
|
||||||
|
"executable": "${workspaceFolder}/../../runme64.bat",
|
||||||
|
"args": [
|
||||||
|
"-c \"cd ${workspaceFolderBasename} &&"
|
||||||
|
],
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "BOOTROM: Make & Flash",
|
"label": "BOOTROM: Make & Flash",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "make bootrom && ./pm3-flash-bootrom",
|
"command": "make bootrom && ./pm3-flash-bootrom",
|
||||||
|
"windows": {
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}/../..",
|
||||||
|
"shell": {
|
||||||
|
"executable": "${workspaceFolder}/../../runme64.bat",
|
||||||
|
"args": [
|
||||||
|
"-c \"cd ${workspaceFolderBasename} &&"
|
||||||
|
],
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Run client",
|
"label": "Run client",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "./pm3",
|
"command": "./pm3",
|
||||||
|
"windows": {
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}/../..",
|
||||||
|
"shell": {
|
||||||
|
"executable": "${workspaceFolder}/../../runme64.bat",
|
||||||
|
"args": [
|
||||||
|
"-c \"cd ${workspaceFolderBasename} &&"
|
||||||
|
],
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue