請問菜單Run|Trace To Next Source Line和Run|Trace into的區別!500分!請實際測試再回答!(100分)

  • 主题发起人 主题发起人 chenghus
  • 开始时间 开始时间
C

chenghus

Unregistered / Unconfirmed
GUEST, unregistred user!
請問菜單Run|Trace To Next Source Line和Run|Trace into的區別!500分!請實際測試再回答!
 
Trace To Next Source Line -- 运行当前语句,直到下一条语句。
Trace into -- 运行当前语句,如果当前语句包含调用其他带源程序的过程和函数,就按照
计算的先后顺序,跟踪到该过程或函数的第一条语句。调用的函数或过程来源于包(没有源程序
或符号信息),就只运行该过程而不能跟踪进去,此时就和Trace To Next Source Line一样了。
 
这是Delphi 自带的帮助,够详细吧!:-)

Run|Trace To Next Source Line
Use this command to stop on the next source line in your application,
regardless of the control flow. For example, if you select this command
when stopped at a Windows API call that takes a callback function,
control will return to the next source line, which in this case is
the callback function.

Run|Trace Into
Choose Run|Trace Into to execute a program one line at a time,
tracing into procedures and following the execution of each line.

The Trace Into command executes the program statement highlighted
by the execution point and advances the execution point to the next statement.

If you issue the Trace Into command when the execution point is located
on a function call, the debugger traces into the function,
positioning the execution point on the function抯 first statement.
If you issue Trace Into when the execution point is
positioned on the end statement of a routine, the routine returns
from its call, and the execution point is placed on the statement
following the routine call.
If the execution point is located on a function call that does not have
debugging information, such as a library function, the debugger runs that
function at full speed, then positions the execution point on the statement
following the function call.

By default, when you initiate a debugging session with Run|Trace Into,
the product moves the execution point to the first line of code that
contains debugging information (this is normally a location that contains
user-written code). To trace into start-up code that the product automatically
generates, see Stepping through code.

In addition to tracing into procedures, you can step over them,
executing each procedure as a single unit. Use Run|Step Over to
execute procedures as a single unit.

An alternative way to perform this command is:

Choose the Trace Into button on the toolbar.
 
to:darnis,ning_ning;
請實際測試再回答!
 
接受答案了.
 
后退
顶部