Commit 8d587fa8 authored by David Schulz's avatar David Schulz

Debugger: Allow breakpoints inside lambdas.

When the cdbengine is using the codemodel breakpoint correction.

Change-Id: I70efa3119ca36b4ffd658425132f3fdff3d3eecf
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent 4a48bcbf
...@@ -128,8 +128,11 @@ bool FindCdbBreakpoint::visit(DoStatementAST *ast) ...@@ -128,8 +128,11 @@ bool FindCdbBreakpoint::visit(DoStatementAST *ast)
bool FindCdbBreakpoint::visit(ExpressionStatementAST *ast) bool FindCdbBreakpoint::visit(ExpressionStatementAST *ast)
{ {
if (ast->expression) if (ast->expression) {
accept(ast->expression);
if (m_breakpointLine == NO_LINE_FOUND)
foundLine(ast->semicolon_token); foundLine(ast->semicolon_token);
}
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment