From 934a74fba44c9a8d8c8ec8c1f79a38262b225896 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 20 Jul 2024 02:17:31 -0400 Subject: [PATCH] Use -jsdebugger for build_and_run, and don't bind devtools on port 6100 Since -jsdebugger apparently works fine, there's no reason to connect to Zotero from Firefox anymore. So just open the Browser Toolbox when passing the -d flag to build_and_run, and stop having the devtools server listen on port 6100 for devtools-enabled builds, since -jsdebugger uses a random port of its own. --- app/build.sh | 1 - app/scripts/build_and_run | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/build.sh b/app/build.sh index 264200b74d..527739a171 100755 --- a/app/build.sh +++ b/app/build.sh @@ -324,7 +324,6 @@ if [ $DEVTOOLS -eq 1 ]; then echo >> $prefs_file echo "// Dev Tools" >> $prefs_file echo 'pref("devtools.debugger.remote-enabled", true);' >> $prefs_file - echo 'pref("devtools.debugger.remote-port", 6100);' >> $prefs_file if [ $UPDATE_CHANNEL != "beta" ]; then echo 'pref("devtools.debugger.prompt-connection", false);' >> $prefs_file fi diff --git a/app/scripts/build_and_run b/app/scripts/build_and_run index b761e59d4c..92f7614055 100755 --- a/app/scripts/build_and_run +++ b/app/scripts/build_and_run @@ -63,7 +63,7 @@ if [ $SKIP_BUNDLED_FILES -eq 1 ]; then PARAMS="$PARAMS -ZoteroSkipBundledFiles" fi if [ $DEBUGGER -eq 1 ]; then - PARAMS="$PARAMS -debugger" + PARAMS="$PARAMS -jsdebugger" fi if [ "`uname`" = "Darwin" ]; then