GdbMiSession.breakInsert

MiPendingCommand breakInsert(string location, bool temporary = false) @trusted

Inserts a breakpoint.

Parameters

locationBreakpoint location (e.g. "main", "file.d:10", "*0x1234").
temporaryWhether the breakpoint should be deleted after it is hit.

Returns

A pending command for -break-insert.

Example:

session.breakInsert("main");
session.breakInsert("src/app.d:42", true);