|
232 | 232 | "target": "./bin/executable", |
233 | 233 | "cwd": "${workspaceRoot}" |
234 | 234 | } |
| 235 | + ], |
| 236 | + "configurationSnippets": [ |
| 237 | + { |
| 238 | + "label": "GDB: Launch Program", |
| 239 | + "description": "Starts the program using gdb", |
| 240 | + "body": { |
| 241 | + "type": "gdb", |
| 242 | + "request": "launch", |
| 243 | + "name": "${2:Launch Program}", |
| 244 | + "target": "${1:./bin/executable}", |
| 245 | + "cwd": "^\"\\${workspaceRoot}\"" |
| 246 | + } |
| 247 | + }, |
| 248 | + { |
| 249 | + "label": "GDB: Attach to PID", |
| 250 | + "description": "Attaches to a running program pid using gdb", |
| 251 | + "body": { |
| 252 | + "type": "gdb", |
| 253 | + "request": "launch", |
| 254 | + "name": "${2:Attach to PID}", |
| 255 | + "target": "${1:[PID]}", |
| 256 | + "cwd": "^\"\\${workspaceRoot}\"" |
| 257 | + } |
| 258 | + }, |
| 259 | + { |
| 260 | + "label": "GDB: Connect to gdbserver", |
| 261 | + "description": "Connects to a gdbserver for debugging", |
| 262 | + "body": { |
| 263 | + "type": "gdb", |
| 264 | + "request": "attach", |
| 265 | + "name": "${3:Attach to gdbserver}", |
| 266 | + "executable": "${1:./bin/executable}", |
| 267 | + "target": ":${2:2345}", |
| 268 | + "remote": true, |
| 269 | + "cwd": "^\"\\${workspaceRoot}\"" |
| 270 | + } |
| 271 | + }, |
| 272 | + { |
| 273 | + "label": "GDB: Launch over SSH", |
| 274 | + "description": "Remotely starts the program using gdb", |
| 275 | + "body": { |
| 276 | + "type": "gdb", |
| 277 | + "request": "launch", |
| 278 | + "name": "${6:Launch Program (SSH)}", |
| 279 | + "target": "${1:./bin/executable}", |
| 280 | + "cwd": "^\"\\${workspaceRoot}\"", |
| 281 | + "ssh": { |
| 282 | + "host": "${2:127.0.0.1}", |
| 283 | + "cwd": "${3:/home/remote_user/project/}", |
| 284 | + "keyfile": "${4:/home/my_user/.ssh/id_rsa}", |
| 285 | + "user": "${5:remote_user}" |
| 286 | + } |
| 287 | + } |
| 288 | + }, |
| 289 | + { |
| 290 | + "label": "GDB: Launch GUI over SSH with X11 forwarding", |
| 291 | + "description": "Remotely starts the program using gdb with X11 forwarding", |
| 292 | + "body": { |
| 293 | + "type": "gdb", |
| 294 | + "request": "launch", |
| 295 | + "name": "${6:Launch Program (SSH + X11)}", |
| 296 | + "target": "${1:./bin/executable}", |
| 297 | + "cwd": "^\"\\${workspaceRoot}\"", |
| 298 | + "ssh": { |
| 299 | + "host": "${2:127.0.0.1}", |
| 300 | + "cwd": "${3:/home/remote_user/project/}", |
| 301 | + "keyfile": "${4:/home/my_user/.ssh/id_rsa}", |
| 302 | + "user": "${5:remote_user}", |
| 303 | + "forwardX11": true, |
| 304 | + "x11host": "localhost", |
| 305 | + "x11port": 6000 |
| 306 | + } |
| 307 | + } |
| 308 | + } |
235 | 309 | ] |
236 | 310 | }, |
237 | 311 | { |
|
430 | 504 | "target": "./bin/executable", |
431 | 505 | "cwd": "${workspaceRoot}" |
432 | 506 | } |
| 507 | + ], |
| 508 | + "configurationSnippets": [ |
| 509 | + { |
| 510 | + "label": "LLDB: Launch Program", |
| 511 | + "description": "Starts the program using lldb-mi", |
| 512 | + "body": { |
| 513 | + "type": "lldb-mi", |
| 514 | + "request": "launch", |
| 515 | + "name": "${2:Launch Program}", |
| 516 | + "target": "${1:./bin/executable}", |
| 517 | + "cwd": "^\"\\${workspaceRoot}\"" |
| 518 | + } |
| 519 | + }, |
| 520 | + { |
| 521 | + "label": "LLDB: Attach to PID", |
| 522 | + "description": "Attaches to a running program pid using lldb-mi", |
| 523 | + "body": { |
| 524 | + "type": "lldb-mi", |
| 525 | + "request": "launch", |
| 526 | + "name": "${2:Attach to PID}", |
| 527 | + "target": "${1:[PID]}", |
| 528 | + "cwd": "^\"\\${workspaceRoot}\"" |
| 529 | + } |
| 530 | + }, |
| 531 | + { |
| 532 | + "label": "LLDB: Launch over SSH", |
| 533 | + "description": "Remotely starts the program using lldb-mi", |
| 534 | + "body": { |
| 535 | + "type": "lldb-mi", |
| 536 | + "request": "launch", |
| 537 | + "name": "${6:Launch Program (SSH)}", |
| 538 | + "target": "${1:./bin/executable}", |
| 539 | + "cwd": "^\"\\${workspaceRoot}\"", |
| 540 | + "ssh": { |
| 541 | + "host": "${2:127.0.0.1}", |
| 542 | + "cwd": "${3:/home/remote_user/project/}", |
| 543 | + "keyfile": "${4:/home/my_user/.ssh/id_rsa}", |
| 544 | + "user": "${5:remote_user}" |
| 545 | + } |
| 546 | + } |
| 547 | + }, |
| 548 | + { |
| 549 | + "label": "LLDB: Launch GUI over SSH with X11 forwarding", |
| 550 | + "description": "Remotely starts the program using lldb-mi with X11 forwarding", |
| 551 | + "body": { |
| 552 | + "type": "lldb-mi", |
| 553 | + "request": "launch", |
| 554 | + "name": "${6:Launch Program (SSH + X11)}", |
| 555 | + "target": "${1:./bin/executable}", |
| 556 | + "cwd": "^\"\\${workspaceRoot}\"", |
| 557 | + "ssh": { |
| 558 | + "host": "${2:127.0.0.1}", |
| 559 | + "cwd": "${3:/home/remote_user/project/}", |
| 560 | + "keyfile": "${4:/home/my_user/.ssh/id_rsa}", |
| 561 | + "user": "${5:remote_user}", |
| 562 | + "forwardX11": true, |
| 563 | + "x11host": "localhost", |
| 564 | + "x11port": 6000 |
| 565 | + } |
| 566 | + } |
| 567 | + } |
433 | 568 | ] |
434 | 569 | }, |
435 | 570 | { |
|
546 | 681 | "target": "./bin/executable", |
547 | 682 | "cwd": "${workspaceRoot}" |
548 | 683 | } |
| 684 | + ], |
| 685 | + "configurationSnippets": [ |
| 686 | + { |
| 687 | + "label": "Mago: Launch Program", |
| 688 | + "description": "Starts the program using mago-mi", |
| 689 | + "body": { |
| 690 | + "type": "mago-mi", |
| 691 | + "request": "launch", |
| 692 | + "name": "${2:Launch Program}", |
| 693 | + "target": "${1:./bin/executable}", |
| 694 | + "cwd": "^\"\\${workspaceRoot}\"" |
| 695 | + } |
| 696 | + }, |
| 697 | + { |
| 698 | + "label": "Mago: Attach to PID", |
| 699 | + "description": "Attaches to a running program pid using mago-mi", |
| 700 | + "body": { |
| 701 | + "type": "mago-mi", |
| 702 | + "request": "launch", |
| 703 | + "name": "${2:Attach to PID}", |
| 704 | + "target": "${1:[PID]}", |
| 705 | + "cwd": "^\"\\${workspaceRoot}\"" |
| 706 | + } |
| 707 | + } |
549 | 708 | ] |
550 | 709 | } |
551 | 710 | ] |
|
0 commit comments