From b564924c7c49179736ecfc6cbe6f368b11d44459 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 10 Aug 2024 01:29:28 -0400 Subject: [PATCH] build_and_run: Fix debugger not showing Zotero sources when using `d` `-jsconsole` somehow prevented Zotero sources from showing up in the Debugger tab of the Browser Toolbox, but there's no reason to show the Browser Console when we're showing the Browser Toolbox, so just don't pass `-jsconsole` when `d` is passed. Fixes #4503 --- app/scripts/build_and_run | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/scripts/build_and_run b/app/scripts/build_and_run index 92f7614055..11dee56557 100755 --- a/app/scripts/build_and_run +++ b/app/scripts/build_and_run @@ -64,6 +64,8 @@ if [ $SKIP_BUNDLED_FILES -eq 1 ]; then fi if [ $DEBUGGER -eq 1 ]; then PARAMS="$PARAMS -jsdebugger" +else + PARAMS="$PARAMS -jsconsole" fi if [ "`uname`" = "Darwin" ]; then @@ -77,4 +79,4 @@ else exit 1 fi -"$APP_ROOT_DIR/staging/$command" $profile -ZoteroDebugText -jsconsole -purgecaches $PARAMS "$@" +"$APP_ROOT_DIR/staging/$command" $profile -ZoteroDebugText -purgecaches $PARAMS "$@"