JS Debugger
JS Debugger blocks provide debugging tools and JavaScript integration capabilities.
Overview
JS Debugger blocks enable you to test, debug, and troubleshoot your StarLogo Nova simulations. These blocks provide powerful tools for inspecting values, validating conditions, setting breakpoints, and outputting information to the JavaScript console for development and debugging purposes.
Block Categories
Debugging Tools
- Breakpoint - Pauses execution for debugging
- Assert - Tests a condition and stops if false
Type Checking
- Assert Type of is - Validates that a value is of a specific type
- Type of is - Checks the type of a value
- Breed has trait - Checks if a breed has a specific trait
Console Output
- Print to JS (value) - Outputs a value to the JavaScript console
- Print to JS (condition) - Outputs a condition result to the JavaScript console
Trait Inspection
- Trait - Inspects and examines trait properties