launch.json 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {
  2. // Use IntelliSense to learn about possible attributes.
  3. // Hover to view descriptions of existing attributes.
  4. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "name": "(gdb) Launch example_app",
  9. "type": "cppdbg",
  10. "request": "launch",
  11. "args": [],
  12. "stopAtEntry": true,
  13. "environment": [],
  14. "externalConsole": true,
  15. "MIMode": "gdb",
  16. "preLaunchTask": "Build example_app",
  17. "setupCommands": [
  18. {
  19. "description": "Enable pretty-printing for gdb",
  20. "text": "-enable-pretty-printing",
  21. "ignoreFailures": true
  22. }
  23. ],
  24. "linux": {
  25. "cwd": "${workspaceFolder}/build/contrib/ports/unix/example_app",
  26. "program": "${workspaceFolder}/build/contrib/ports/unix/example_app/example_app",
  27. },
  28. "windows": {
  29. "cwd": "${workspaceFolder}/build/contrib/ports/win32/example_app",
  30. "program": "${workspaceFolder}/build/contrib/ports/win32/example_app/example_app",
  31. "miDebuggerPath": "gdb.exe",
  32. }
  33. },
  34. {
  35. "name": "(gdb) Launch unit tests",
  36. "type": "cppdbg",
  37. "request": "launch",
  38. "args": [],
  39. "stopAtEntry": true,
  40. "environment": [],
  41. "externalConsole": false,
  42. "MIMode": "gdb",
  43. "preLaunchTask": "Build unit tests",
  44. "setupCommands": [
  45. {
  46. "description": "Enable pretty-printing for gdb",
  47. "text": "-enable-pretty-printing",
  48. "ignoreFailures": true
  49. }
  50. ],
  51. "linux": {
  52. "cwd": "${workspaceFolder}/contrib/ports/unix/check/build",
  53. "program": "${workspaceFolder}/contrib/ports/unix/check/build/lwip_unittests",
  54. },
  55. "windows": {
  56. "cwd": "${workspaceFolder}/contrib/ports/win32/check/build",
  57. "program": "${workspaceFolder}/contrib/ports/win32/check/build/lwip_unittests",
  58. "miDebuggerPath": "gdb.exe",
  59. }
  60. }
  61. ]
  62. }