提交 670f60ff 编写于 作者: I isidor

debug: send the breakpoint condition to adapter

fixes #1671
上级 160250cc
......@@ -784,7 +784,9 @@ export class DebugService extends ee.EventEmitter implements debug.IDebugService
);
return this.session.setBreakpoints({ source: Source.toRawSource(modelUri, this.model), lines: breakpointsToSend.map(bp => bp.desiredLineNumber) }).then(response => {
return this.session.setBreakpoints({ source: Source.toRawSource(modelUri, this.model), lines: breakpointsToSend.map(bp => bp.desiredLineNumber),
breakpoints: breakpointsToSend.map(bp => ({ line: bp.desiredLineNumber, expression: bp.condition })) }).then(response => {
const data: {[id: string]: { line: number, verified: boolean } } = { };
for (let i = 0; i < breakpointsToSend.length; i++) {
data[breakpointsToSend[i].getId()] = response.body.breakpoints[i];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册