1. 首页
  2. 易语言 - EasyLanguage
  3. EasyLanguage调试器 EasyLanguage Debugger

EasyLanguage调试器 EasyLanguage Debugger

本文讲述调试器的优势和操作步骤。

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

Overview
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
Controls

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
Example:
BreakPoint( “1” );

Labels: (“1”)
Labels are required
Labels can be string variables

Here is how it looks:

WatchList display

Note: Both ‘End of Bar’ and ‘Next BreakPoint’ icons (the two on the far left) do the same thing: ‘Next BreakPoint’:

Summary
We have covered Debugger advantages over ‘print debugging’

The Debugger is useful during any programming session

更新于 2020年5月25日

这篇文章对您有帮助吗?

相关的话题

留言评论