2012-08-18 18:43:11 +02:00
|
|
|
|
script_name = "Automation 4 test 9"
|
2007-01-18 21:47:56 +01:00
|
|
|
|
script_description = "Test debug out function"
|
|
|
|
|
script_author = "Niels Martin Hansen"
|
2007-01-18 21:55:40 +01:00
|
|
|
|
script_version = "2"
|
2007-01-18 21:47:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function test9(subtitles, selected_lines, active_line)
|
|
|
|
|
aegisub.debug.out("Only string argument\n")
|
|
|
|
|
aegisub.debug.out("Hello %s!\n", "format string world")
|
2007-01-18 21:55:40 +01:00
|
|
|
|
aegisub.log("Now going to log 7 strings with trace levels 0 to 6:\n")
|
2007-01-18 21:47:56 +01:00
|
|
|
|
for i = 0, 6 do
|
2007-01-18 21:55:40 +01:00
|
|
|
|
aegisub.log(i, "Trace level %d...\n", i)
|
2007-01-18 21:47:56 +01:00
|
|
|
|
end
|
|
|
|
|
aegisub.debug.out(3, "Finished!")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
aegisub.register_macro("Test debug out", "Tests the aegisub.debug.out function", test9)
|