mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
-add breakpoint statement to ease with debugging, closes #3165
This commit is contained in:
parent
99736e63e4
commit
7d2d1442f8
7 changed files with 34 additions and 1 deletions
|
@ -1862,6 +1862,17 @@ void GDParser::_parse_block(BlockNode *p_block,bool p_static) {
|
|||
return;
|
||||
}
|
||||
} break;
|
||||
case GDTokenizer::TK_PR_BREAKPOINT: {
|
||||
|
||||
tokenizer->advance();
|
||||
BreakpointNode *bn = alloc_node<BreakpointNode>();
|
||||
p_block->statements.push_back(bn);
|
||||
|
||||
if (!_end_statement()) {
|
||||
_set_error("Expected end of statement after breakpoint.");
|
||||
return;
|
||||
}
|
||||
} break;
|
||||
default: {
|
||||
|
||||
Node *expression = _parse_and_reduce_expression(p_block,p_static,false,true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue