@@ -41,6 +41,7 @@ func _ready() -> void:
4141 var Location = ""
4242 var SnippetName = ""
4343 var UseDebugger = false
44+ var SkipBreakpoints = false
4445 var Args : PoolStringArray = OS .get_cmdline_args ()
4546 for Arg in Args :
4647 if Arg .begins_with ("--snippet-run=" ):
@@ -51,17 +52,19 @@ func _ready() -> void:
5152 UseDebugger = true
5253 elif Arg == "--snippet-log" :
5354 CreateLogFile ()
55+ elif Arg == "--snippet-skipbp" :
56+ SkipBreakpoints = true
5457
5558 if not Location .empty ():
56- var ExitCode : int = Run (Location , SnippetName , UseDebugger )
59+ var ExitCode : int = Run (Location , SnippetName , UseDebugger , SkipBreakpoints )
5760 get_tree ().quit (ExitCode )
5861 else :
5962 # The main UI application starts here.
6063 var Instance = MainScene .instance ()
6164 add_child (Instance )
6265
6366
64- func Run (Location : String , SnippetName : String , UseDebugger := false ) -> int :
67+ func Run (Location : String , SnippetName : String , UseDebugger := false , SkipBreakpoints : = false ) -> int :
6568 var _Error = Log .connect ("OnLog" , self , "OnLog" )
6669
6770 if not Workspace .Open (Location ):
@@ -88,7 +91,7 @@ func Run(Location: String, SnippetName: String, UseDebugger := false) -> int:
8891
8992 var Data : SnippetData = Workspace .GetSnippet (SnippetName )
9093 if Data :
91- Runtime .ExecuteSnippet (Data , IsUnitTest )
94+ Runtime .ExecuteSnippet (Data , IsUnitTest , SkipBreakpoints )
9295
9396 while Runtime .IsRunning ():
9497 Runtime ._process (FrameTime )
0 commit comments