Skip to content

Commit

Permalink
vscode config
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Aug 24, 2023
1 parent fae2e6d commit dc4efce
Show file tree
Hide file tree
Showing 4 changed files with 426 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zigConsole/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"ziglang.vscode-zig",
]
}
211 changes: 211 additions & 0 deletions zigConsole/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Local AMD64",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/x86_64/debug/__change__",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
],
"preLaunchTask": "build-debug-amd64-local"
},
{
"name": "Torizon riscv64",
"type": "cppdbg",
"request": "launch",
"program": "~/app/__change__",
"args": [],
"stopAtEntry": false,
"cwd": "~/app",
"environment": [],
"externalConsole": false,
"sourceFileMap": {
"/app": "${workspaceFolder}"
},
"pipeTransport": {
"debuggerPath": "/usr/bin/gdb",
"pipeProgram": "ssh",
"pipeArgs": [
"-T",
"-q",
"-p",
"${config:torizon_debug_ssh_port}",
"-i",
"${workspaceFolder}/.conf/id_rsa", // ssh key path
"-o",
"StrictHostKeyChecking=no",
"-o",
"UserKnownHostsFile /dev/null",
"${config:torizon_run_as}@${config:torizon_ip}" // user@device
]
},
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
],
"preLaunchTask": "deploy-torizon-riscv64"
},
{
"name": "Torizon AMD64",
"type": "cppdbg",
"request": "launch",
"program": "~/app/__change__",
"args": [],
"stopAtEntry": false,
"cwd": "~/app",
"environment": [],
"externalConsole": false,
"sourceFileMap": {
"/app": "${workspaceFolder}"
},
"pipeTransport": {
"debuggerPath": "/usr/bin/gdb",
"pipeProgram": "ssh",
"pipeArgs": [
"-T",
"-q",
"-p",
"${config:torizon_debug_ssh_port}",
"-i",
"${workspaceFolder}/.conf/id_rsa", // ssh key path
"-o",
"StrictHostKeyChecking=no",
"-o",
"UserKnownHostsFile /dev/null",
"${config:torizon_run_as}@${config:torizon_ip}" // user@device
]
},
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
],
"preLaunchTask": "deploy-torizon-amd64"
},
{
"name": "Torizon ARMv7",
"type": "cppdbg",
"request": "launch",
"program": "~/app/__change__",
"args": [],
"stopAtEntry": false,
"cwd": "~/app",
"environment": [],
"externalConsole": false,
"sourceFileMap": {
"/app": "${workspaceFolder}"
},
"pipeTransport": {
"debuggerPath": "/usr/bin/gdb",
"pipeProgram": "ssh",
"pipeArgs": [
"-T",
"-q",
"-p",
"${config:torizon_debug_ssh_port}",
"-i",
"${workspaceFolder}/.conf/id_rsa", // ssh key path
"-o",
"StrictHostKeyChecking=no",
"-o",
"UserKnownHostsFile /dev/null",
"${config:torizon_run_as}@${config:torizon_ip}" // user@device
]
},
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
],
"preLaunchTask": "deploy-torizon-arm"
},
{
"name": "Torizon ARMv8",
"type": "cppdbg",
"request": "launch",
"program": "~/app/__change__",
"args": [],
"stopAtEntry": false,
"cwd": "~/app",
"environment": [],
"externalConsole": false,
"sourceFileMap": {
"/app": "${workspaceFolder}"
},
"pipeTransport": {
"debuggerPath": "/usr/bin/gdb",
"pipeProgram": "ssh",
"pipeArgs": [
"-T",
"-q",
"-p",
"${config:torizon_debug_ssh_port}",
"-i",
"${workspaceFolder}/.conf/id_rsa", // ssh key path
"-o",
"StrictHostKeyChecking=no",
"-o",
"UserKnownHostsFile /dev/null",
"${config:torizon_run_as}@${config:torizon_ip}" // user@device
]
},
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
],
"preLaunchTask": "deploy-torizon-arm64"
},
]
}
18 changes: 18 additions & 0 deletions zigConsole/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"torizon_psswd": "",
"torizon_login": "",
"torizon_ip": "",
"host_ip": "",
"torizon_workspace": "${workspaceFolder}",
"torizon_debug_port": "",
"torizon_debug_ssh_port": "2320",
"torizon_debug_port2": "",
"torizon_debug_port3": "",
"torizon_gpu": "",
"torizon_arch": "",
"wait_sync": "1",
"torizon_run_as": "torizon",
"torizon_app_root": "/home/torizon",
"tcb.packageName": "__change__",
"tcb.version": "early-access"
}
Loading

0 comments on commit dc4efce

Please sign in to comment.