I don’t know if it can be done in Script Debugger Preferences but I did find a way to do it using free app Karabiner-Elements.
You have to install from https://pqrs.org/osx/karabiner/, then go tohttps://pqrs.org/osx/karabiner/.
Scroll down to “PC-Style Modifiers” and click on Import button at end of line.
Open Karabiner-Elements in Applications
Click on the Complex Modifications tab
Click on Add rule button at bottom-left.
Scroll down to PC-style shortcuts.
Find “Home key to beginning of the line” and click the Enable button at right.
Repeat for “End key to the end of the line”
After restart, Home and End keys worked as in Windows.
Note: My installation was on a Mojave system. There are some indications it may not work with Catalina, until PQRS.org creates another version