Better debugging

This commit is contained in:
Brahim Hadriche committed 2022-11-30 10:16:44 -05:00
1 parent ce04a1af1a
commit 21593001ae
7 files changed
+45 -8

No files matched your search

@@ -37,7 +37,7 @@ function WebServerLoop()
m.server.UseRouter(new Http.StateApiRouter())
m.server.UseRouter(new Http.InvidiousRouter())
m.server.UseRouter(new Http.HttpStaticFilesRouter("/", m.settings.WwwRoot))
#if WEB_SERVER_PACKAGE_DEBUG
#if DEBUG
m.server.UseRouter(new Http.HttpStaticFilesRouter("/debug/pkg", "pkg:/", true, true))
m.server.UseRouter(new Http.HttpStaticFilesRouter("/debug/tmp", "tmp:/", true, true))
m.server.UseRouter(new Http.HttpStaticFilesRouter("/debug/cachefs", "cachefs:/", true, true))
+1 -1
View File
@@ -21,4 +21,4 @@ splash_screen_sd=pkg:/images/splash-screen_sd.jpg
splash_color=#242424
splash_min_time=0
bs_const=WEB_SERVER_BASIC_AUTH=false;WEB_SERVER_PACKAGE_DEBUG=false;DASH_THUMBNAILS=false
bs_const=DEBUG=true;WEB_SERVER_BASIC_AUTH=false;DASH_THUMBNAILS=false
+3 -2
View File
@@ -9,8 +9,9 @@ function main() as void
' The following comment is to enable the SceneGraph inspector
' on the VSCode BrightScript plugin.
' vscode_rdb_on_device_component_entry
#if DEBUG
' vscode_rdb_on_device_component_entry
#end if
while true
msg = wait(0, m.port)