3.1.41.2.2. waf_tools.vscode.build_launch

waf_tools.vscode.build_launch(bld: BuildContext, vscode_dir: Node) → None

Patch launch.json with debugger paths and program locations.

Reads the template launch.json from vscode_dir, then for each debug configuration:

  • Sets miDebuggerPath to the detected GDB executable.

  • Sets cwd to the current build path.

  • Constructs the program path using VS Code variables so that the correct unit test executable is launched.

Parameters:
  • bld – The active build context.

  • vscode_dir – The target .vscode directory node.