5. Troubleshooting scripts: Difference between revisions

From MXWendler Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 8: Line 8:
# Open the JavaScript console by pressing Ctrl+Shift+J (Mac:Command+Shift+J) and look for error messages.
# Open the JavaScript console by pressing Ctrl+Shift+J (Mac:Command+Shift+J) and look for error messages.
# Check for syntax errors in your code and ensure that interface functions are written correctly.
# Check for syntax errors in your code and ensure that interface functions are written correctly.
# Note that certain types of errors may not be visible in the JavaScript console. To identify them, check for any color-coded functions in the code.
# Check that predefined hooks and functions like e.g. on_trigger() are written correctly. Syntax highlighting and coloring may help you identify these issues.
# Verify the widget and make sure that the address is valid. To find the correct address name, refer to the complete list of addresses available in the 'Receiver' menu, and copy and paste it accordingly.
# When resolving widgets, verify the used widgets address (e.g. "/mxw/render/opacity") and make sure that it is valid. To find the correct address, maybe refer to the list of address suggestions available in the 'Receiver' menu.

Latest revision as of 20:39, 1 March 2023

Problem

JavaScript is not functioning as intended. No corresponding action happens when the trigger button for the event is pressed.

Hints

  1. Open the JavaScript console by pressing Ctrl+Shift+J (Mac:Command+Shift+J) and look for error messages.
  2. Check for syntax errors in your code and ensure that interface functions are written correctly.
  3. Check that predefined hooks and functions like e.g. on_trigger() are written correctly. Syntax highlighting and coloring may help you identify these issues.
  4. When resolving widgets, verify the used widgets address (e.g. "/mxw/render/opacity") and make sure that it is valid. To find the correct address, maybe refer to the list of address suggestions available in the 'Receiver' menu.