You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
-add breakpoint statement to ease with debugging, closes #3165
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user