- Install CodeLLDB in VSCode
- Create
launch.jsonwith code below - Adapt
makefileto include the debug symbols
ref. CodeLLDB doco https://github.com/vadimcn/codelldb/blob/master/MANUAL.md
| { | |
| "Alt-/": "lua:comment.comment", | |
| "Alt-=": "HSplit", | |
| "Alt-Left": "WordLeft", | |
| "Alt-MouseLeft": "MouseMultiCursor", | |
| "Alt-Right": "WordRight", | |
| "Alt-[": "PreviousSplit", | |
| "Alt-\\": "VSplit", | |
| "Alt-]": "NextSplit", | |
| "Alt-d": "command:definition", |
| color-link default "#dddddd" | |
| color-link comment "blue" | |
| color-link constant "red" | |
| color-link identifier "cyan" | |
| color-link statement "yellow" | |
| color-link symbol "yellow" | |
| color-link preproc "magenta" | |
| color-link type "green" | |
| color-link special "magenta" | |
| color-link ignore "default" |
| # https://ghostty.zerebos.com/app/import-export | |
| # fonts | |
| font-family = Berkeley Mono | |
| font-size = 18 | |
| # disable ligatures | |
| font-feature = -calt | |
| # window |
| in the repo, create the file: | |
| .git/hooks/pre-commit | |
| don't forget to chmod +x pre-commit as it needs to be executable | |
| source: https://www.reddit.com/r/Jai/comments/jp0vjy/nocheckin_behavior_in_gitsourcetree/ |
| /** | |
| * 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": { |