- Install CodeLLDB in VSCode
- Create
launch.json
with code below - Adapt
makefile
to include the debug symbols
ref. CodeLLDB doco https://github.com/vadimcn/codelldb/blob/master/MANUAL.md
/** | |
* MacEditorTextView | |
* Copyright (c) Thiago Holanda 2020-2021 | |
* https://gist.github.com/unnamedd/6e8c3fbc806b8deb60fa65d6b9affab0 | |
* MIT license | |
*/ | |
import SwiftUI | |
import Neon |
#!/bin/bash | |
#################################### | |
# Backup to tar | |
# inspired from | |
# https://ubuntu.com/server/docs/basic-backup-shell-script | |
#################################### | |
# What to backup. | |
backup_files="/home /var/spool/mail /etc /root /opt" |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "lldb", | |
"request": "launch", | |
"name": "Debug", | |
"program": "${workspaceFolder}/target/debug/<!!!your-binary-name!!!>", | |
"preLaunchTask": "rust: cargo build", | |
"args": [], |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch & Debug", | |
"type": "lldb", | |
"request": "launch", | |
"program": "${workspaceRoot}/target/debug/${workspaceRootFolderName}", | |
"args": [], | |
"cwd": "${workspaceRoot}" |
launch.json
with code belowmakefile
to include the debug symbolsref. CodeLLDB doco https://github.com/vadimcn/codelldb/blob/master/MANUAL.md
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Listen for Xdebug", | |
"type": "php", | |
"request": "launch", | |
"stopOnEntry": false, // !!! doesn't work, hit the refresh (Green) icon and keep going | |
"port": 9000, | |
"pathMappings": { |
BasedOnStyle: Google | |
IndentWidth: 4 | |
UseTab: false | |
AlignTrailingComments: true | |
SpacesBeforeTrailingComments: 1 | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
AllowShortBlocksOnASingleLine: true | |
AllowShortIfStatementsOnASingleLine: true |
{ | |
"Alt-/": "lua:comment.comment", | |
"Alt-Left": "StartOfLine", | |
"Alt-MouseLeft": "MouseMultiCursor", | |
"Alt-Right": "EndOfLine", | |
"Alt-[": "PreviousTab", | |
"Alt-]": "NextTab", | |
"Alt-d": "command:definition", | |
"Alt-f": "command:format", | |
"Alt-k": "command:hover", |
/* NOTE: min font-size 17 (on 27" 5K screen...) */ | |
html > body, font, p, table tr td { | |
line-height: 1.6 !important; | |
} |