launch.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "configurations": [
  3. {
  4. "type": "cppdbg",
  5. "request": "launch",
  6. "name": "Launch Kernel",
  7. "program": "${workspaceFolder}/build/kernel.out",
  8. "args": [],
  9. "stopAtEntry": false,
  10. "cwd": "${workspaceFolder}",
  11. "environment": [],
  12. "externalConsole": false,
  13. "MIMode": "gdb",
  14. "miDebuggerPath": "x86_64-elf-gdb",
  15. "miDebuggerServerAddress": "127.0.0.1:1234",
  16. "setupCommands": [
  17. // {
  18. // "text": "source ${env:HOME}/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/etc/gdb_load_rust_pretty_printers.py",
  19. // "description": "Load Rust pretty printers",
  20. // "ignoreFailures": false
  21. // },
  22. {
  23. "text": "-enable-pretty-printing",
  24. "description": "Enable GDB pretty printing",
  25. "ignoreFailures": true
  26. },
  27. {
  28. "text": "source ${workspaceFolder}/pretty-print.py",
  29. "description": "Load GDB pretty printers",
  30. "ignoreFailures": false
  31. },
  32. ],
  33. "preLaunchTask": "debug run",
  34. "postDebugTask": "kill qemu"
  35. },
  36. {
  37. "type": "cppdbg",
  38. "request": "launch",
  39. "name": "Attach Kernel",
  40. "program": "${workspaceFolder}/build/kernel.out",
  41. "args": [],
  42. "stopAtEntry": false,
  43. "cwd": "${workspaceFolder}",
  44. "environment": [],
  45. "externalConsole": false,
  46. "MIMode": "gdb",
  47. "miDebuggerPath": "x86_64-elf-gdb",
  48. "miDebuggerServerAddress": "127.0.0.1:1234",
  49. "setupCommands": [
  50. {
  51. "text": "-enable-pretty-printing",
  52. "description": "Enable GDB pretty printing",
  53. "ignoreFailures": true
  54. }
  55. ]
  56. }
  57. ]
  58. }