Warning: The debugger is not as advanced a tool as that found in a Microsoft programming suite. The version that comes with TradeStation 8.0 build 1869 is designed for charting and is unreliable when used with RadarScreen. Additionally, the ‘control’ icons for ‘Go to End of Bar’ and ‘Next BreakPoint’ do exactly the same thing: ‘Next BreakPoint’. If you know the limitations and avoid getting frustrated with ‘expectations’, it can be a powerful tool!
Introduction to the TradeStation Debugger
How to use the Debugger
Advantages of the Debugger
The Debugger is an alternative to display of Print Statement output in the “EasyLanguage Output Bar”
Here are the advantages:
1. Obtain variable values ‘in process’. Print statements always run at the ‘end of the EL run’.
2. Dynamically modify historical variable display while code is running
3. Increase displayed decimals while code is running.
4. Determining Simple vs. Series variables
The procedure for using it
1. Invocation via ‘BreakPoint’
2. Step forward controls
3. Display controls
4. Watchlist Inputs
Invoking the Debugger
There is a one step operation: Insert the Reserved Word “Breakpoint” with a label into your code
BreakPoint( “1” );
Labels are required
Labels can be string variables
Here is how it looks:
Note: Both ‘End of Bar’ and ‘Next BreakPoint’ icons (the two on the far left) do the same thing: ‘Next BreakPoint’:
We have covered Debugger advantages over ‘print debugging’
The Debugger is useful during any programming session