SIZ EDUCATION ||Debugging features of turbo C++.

in hive-181430 •  3 years ago 

Discuss some debugging abilties of TurboC++.

Turbo C++ gives many useful debugging abilties. The debugging abilties of Turbo C++ are available in Debug menu. Some crucial debugging abilties of Turbo C++ are as follows.

1.Single Stepping.

IMG-20220108-WA0046.jpg
Source image
A utility many now now not execute although it is been comiled successfully. The debugger provide the electricity to find out errors with the resource of the use of executing one line of a utility at one time.it permits the programmer to come across the right location of error. The following technique is used to execute one step at a time with single stepping.

  • pick Run > Trace Into OR press F7.

RGgukq5E6HBM2jscGd4Sszpv94XxHH2uqxMY9z21vaqHt4sBzPs77pScRoPrApzn5F5oev54QbyTCt4YntxDSSmwb6Mnv7sHKcWuvagPFRYaidXZ3YBMv63BifW1Hne.png

2.Watches.

The watch or watch expression is used to check the fee of a variable due to the fact the utility execute. It indicates how the values of variables extrade at some stage in utility execution. It is normally applied in combination with single stepping
The following technique is used to use watch or watch expression.

IMG-20220108-WA0045.jpg
Source image

  • location the cursor on the variable whose fee is to be checked.
  • Select Debug > Watches. A submenu will appear.
  • Select Add Watch from the submenu. OR press CTRL+F7 .A communication discipline will appear.The determined on variable will appear in watch expression vicinity.
  • Click OK OR press Enter. A new window will appear indicating that the selected picture Is undefined.
  • Select Run > Trace Into OR press F7 to execute single stepping. The fee of the selected variable will appear in Watch window.

RGgukq5E6HBM2jscGd4Sszpv94XxHH2uqxMY9z21vaqHt4sBzPs77pScRoPrApzn5F5oev54QbyTCt4YntxDSSmwb6Mnv7sHKcWuvagPFRYaidXZ3YBMv63BifW1Hne.png

three.Breakpoints.

A breakpoint is used to mark a part of utility in which utility execution will stop.The utility executes all statements as a lot because the breakpoint and than stops. The customer can check the values of a variable at this element with the resource of the use of using watch window with the resource of the use of single stepping the very last part of this gadget.
The following technique is used to insert a breakpoint withinside the utility.

IMG-20220108-WA0043.jpg
Source image

  • location the cursor on the street on which the breakpoint is to be inserted.
  • pick Debug > Toggle breakpoint OR press CTRL+F8.The breakpoint may be inserted and the street may be highlighted.

RGgukq5E6HBM2jscGd4Sszpv94XxHH2uqxMY9z21vaqHt4sBzPs77pScRoPrApzn5F5oev54QbyTCt4YntxDSSmwb6Mnv7sHKcWuvagPFRYaidXZ3YBMv63BifW1Hne.png

4.Evaluate /Modify windown.

The evaluate /modify window is used to extrade the fee of variable at some stage in utility execution. It can be useful if the customer is single stepping this gadget and wants to extrade the fee of a nice variable. The following technique is used to use evaluate /modify window.

IMG-20220108-WA0044.jpg
Source image

  • pick Debug > Evaluate /modify.A new window will appear with three fields.
  • Enter the decision of the vatiable whose fee is to be modified in expression vicinity.
  • Enter the modern-day fee for the variable in New Value vicinity. The fee of the 1/3 vicinity quit end result may even extrade automatically.

RGgukq5E6HBM2jscGd4Sszpv94XxHH2uqxMY9z21vaqHt4sBzPs77pScRoPrApzn5F5oev54QbyTCt4YntxDSSmwb6Mnv7sHKcWuvagPFRYaidXZ3YBMv63BifW1Hne.png

Special Thanks To

@siz-official
@cryptokraze
@ashkhan
@vvarishayy
@suboohi

Best regards by

@adnangill

RGgukq5E6HBM2jscGd4Sszpv94XxHH2uqxMY9z21vaqHt4sBzPs77pScRoPrApzn5F5oev54QbyTCt4YntxDSSmwb6Mnv7sHKcWuvagPFRYaidXZ3YBMv63BifW1Hne.png

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

CC+ is too much difficults thanks for sharing your thoughts about this keep it.