Advertisement
Guest User

launch.json

a guest
Dec 8th, 2021
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.58 KB | None | 0 0
  1. {
  2.     "version": "0.2.0",
  3.     "configurations": [
  4.         {
  5.             "logToFile": true,
  6.             "name": "Launch with GDB",
  7.             "type": "cppdbg",
  8.             "request": "launch",
  9.             "program": "${workspaceRoot}/kernel/kernel.elf",
  10.             "cwd": "${workspaceRoot}",
  11.             "args": [],
  12.             "targetArchitecture": "x64",
  13.             "MIMode": "gdb",
  14.             "miDebuggerPath": "${workspaceRoot}/bin/cross/bin/x86_64-elf-gdb",
  15.             "miDebuggerArgs": "",
  16.             "externalConsole": false,
  17.             "customLaunchSetupCommands": [
  18.                 {
  19.                     "text": "target remote localhost:1234",
  20.                     "description": "Connect to QEMU remote debugger"
  21.                 }
  22.             ],
  23.             "setupCommands": [
  24.                 {
  25.                     "description": "Enable pretty-printing for gdb",
  26.                     "text": "-enable-pretty-printing",
  27.                     "ignoreFailures": true
  28.                 },
  29.                 {
  30.                     "text": "file ${workspaceRoot}/kernel/kernel.elf",
  31.                     "description": "Load binary."
  32.                 },
  33.                 {
  34.                     "text": "break isr_handler",
  35.                     "description": "Break on exception handler."
  36.                 },
  37.             ],
  38.             "preLaunchTask": "Launch QEMU",
  39.             "postDebugTask": "Make Clean",
  40.             "logging": {
  41.                 "engineLogging": true,
  42.                 "trace": true,
  43.                 "traceResponse": true
  44.             }
  45.         }
  46.     ]
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement