forked from qt-creator/qt-creator
Debugger: Allow breakpoints inside lambdas.
When the cdbengine is using the codemodel breakpoint correction. Change-Id: I70efa3119ca36b4ffd658425132f3fdff3d3eecf Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -128,8 +128,11 @@ bool FindCdbBreakpoint::visit(DoStatementAST *ast)
|
||||
|
||||
bool FindCdbBreakpoint::visit(ExpressionStatementAST *ast)
|
||||
{
|
||||
if (ast->expression)
|
||||
foundLine(ast->semicolon_token);
|
||||
if (ast->expression) {
|
||||
accept(ast->expression);
|
||||
if (m_breakpointLine == NO_LINE_FOUND)
|
||||
foundLine(ast->semicolon_token);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user