You can instruct CrossLoad to start a command-line debugging session by using -debug and optional -break and -script options. For example:

crossload -target sim -solution mysolution.hzp -project myproject -config "ARM RAM Debug" -debug -break main 

This will load the executable created with the ARM RAM Debug configuration for myproject onto the simulator and run it until its main function is called.

A command prompt is then shown that will accept JavaScript statements. The debugger functionality is accessed using the built-in JavaScript object Debug, so all debugger commands are be entered using the form Debug.command().