The basic course of C language (VI) Turbo C programming Preliminary (7)
Source: Internet
Author: User
Second, Turbo C integrated Debugger
Once you have modified the syntax errors, the program compiles without problems, but it may not run as required, because there may be logical errors (run errors). This kind of error tracking does not help to find the wrong location. TC has an integrated debugger to track run errors. You can run through the debugger, pause at a breakpoint, check the value of a variable, and even change it to see how the program reacts.
The Turbo C Integration Debugger is a source-level debugger that controls the debugger with the same "language" as you write the program. For example, to display the value of an element in an array, you can tell the debugger to display the value of such an expression:
Ctrl+f4 Debug/eavluate evaluates the expression, allowing the value of the variable to be modified.
Debug/find function lookup functions are defined and displayed in the edit window. Only
Valid when debugging.
CTRL+F3 Debug/call Stack Displays the call stack, which shows the current hold of any function
The row position by selecting the corresponding method in the call stack
The name of the function. Valid only when debugging.
Debug/source Debugging controls whether debugging is allowed: when placed on, the integration
Both the test device and the individual debugger are available; Placed as
Standalone, you can only use a separate debugger
debugging, although still can run in TC; Placed as
None, no debugging information in the. exe file,
Both types of debugging cannot be debugged.
Ctrl+f4 Break/watch/add Watch adds a watch expression.
Break/watch/delete Watch Deletes a watch expression.
Break/watch/edit edit a watch expression.
Break/watch/remove all deletes all watch expressions.
Watches
Ctrl+f8 Break/watch/toggle Sets or clears the breakpoint on the line where the cursor is located.
Breakpoint
Break/watch/clear Remove all breakpoints in the program.
Breakpoint
Break/watch/next Show Next Breakpoint
Breakpoint
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service