mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +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
|
|
@ -1077,6 +1077,14 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
|
|||
|
||||
ip+=2;
|
||||
} continue;
|
||||
case OPCODE_BREAKPOINT: {
|
||||
#ifdef DEBUG_ENABLED
|
||||
if (ScriptDebugger::get_singleton()) {
|
||||
GDScriptLanguage::get_singleton()->debug_break("Breakpoint Statement",true);
|
||||
}
|
||||
#endif
|
||||
ip+=1;
|
||||
} continue;
|
||||
case OPCODE_LINE: {
|
||||
CHECK_SPACE(2);
|
||||
|
||||
|
|
@ -2672,6 +2680,7 @@ void GDScriptLanguage::get_reserved_words(List<String> *p_words) const {
|
|||
"or",
|
||||
"export",
|
||||
"assert",
|
||||
"breakpoint",
|
||||
"yield",
|
||||
"static",
|
||||
"float",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue