public virtual async Task <Results> BreakInsert(string filename, bool useUnixFormat, uint line, string condition, bool enabled, IEnumerable <Checksum> checksums = null, ResultClass resultClass = ResultClass.done) { StringBuilder cmd = await BuildBreakInsert(condition, enabled); if (checksums != null && checksums.Any()) { cmd.Append(Checksum.GetMIString(checksums)); cmd.Append(' '); } string filenameMI; bool quotes = PreparePath(filename, useUnixFormat, out filenameMI); if (quotes) { cmd.Append('\"'); } cmd.Append(filenameMI); cmd.Append(':'); cmd.Append(line.ToString(CultureInfo.InvariantCulture)); if (quotes) { cmd.Append('\"'); } return(await _debugger.CmdAsync(cmd.ToString(), resultClass)); }
public virtual async Task <Results> BreakInsert(string filename, uint line, string condition, bool enabled, IEnumerable <Checksum> checksums = null, ResultClass resultClass = ResultClass.done) { StringBuilder cmd = BuildBreakInsert(condition, enabled); if (checksums != null && checksums.Count() != 0) { cmd.Append(Checksum.GetMIString(checksums)); cmd.Append(" "); } cmd.Append(filename); cmd.Append(":"); cmd.Append(line.ToString()); return(await _debugger.CmdAsync(cmd.ToString(), resultClass)); }