EcHo
2003-08-09, 17:18:36
Ich mach mal nen neuen Versuch:
Das mitgeliferte Tutorial des CDT (C/C++ Development Toolkit) für Eclipse hab ich bis zum Punkt "Debugging your project" durchgeführt.
hier heißt es:
----------------------------------------
To debug a project
- Click Run > Debug.
- In the Launch Configurations dialog box, double-click C++ Local.
- In the File name box, type Hello World for this debug launch configuration.
You can now select this debug launch configuration by name from the Launch Configurations dialog box or by clicking Run > Debug Last Launched if the launch configuration you want is the last one that you used.
- Click Debug.
- In the left margin of the main.cpp window, double-click to set a breakpoint on:
cout << "You just entered"
- Click Run > Resume.
- Click Run > Resume.
- When prompted, type a value other than ‘m’.
The breakpoint will be hit.
- In the Variable view, verify that the variable is not ‘m’.
- Click Run > Resume.
- When prompted, type a value other than ‘m’.
The breakpoint will be hit.
- In the Variable view, verify that the variable is not ‘m’.
- In the Variable view, right-click on the input variable, click Change Variable Value and type ‘m’.
- Click Run > Resume.
- Notice the output:
"You just entered m, you need to enter m to exit."
- Type ‘m’ to end the program.
----------------------------------------
Nur was muss ich bei Punkt 3 genau machen? s. Anhang
Das mitgeliferte Tutorial des CDT (C/C++ Development Toolkit) für Eclipse hab ich bis zum Punkt "Debugging your project" durchgeführt.
hier heißt es:
----------------------------------------
To debug a project
- Click Run > Debug.
- In the Launch Configurations dialog box, double-click C++ Local.
- In the File name box, type Hello World for this debug launch configuration.
You can now select this debug launch configuration by name from the Launch Configurations dialog box or by clicking Run > Debug Last Launched if the launch configuration you want is the last one that you used.
- Click Debug.
- In the left margin of the main.cpp window, double-click to set a breakpoint on:
cout << "You just entered"
- Click Run > Resume.
- Click Run > Resume.
- When prompted, type a value other than ‘m’.
The breakpoint will be hit.
- In the Variable view, verify that the variable is not ‘m’.
- Click Run > Resume.
- When prompted, type a value other than ‘m’.
The breakpoint will be hit.
- In the Variable view, verify that the variable is not ‘m’.
- In the Variable view, right-click on the input variable, click Change Variable Value and type ‘m’.
- Click Run > Resume.
- Notice the output:
"You just entered m, you need to enter m to exit."
- Type ‘m’ to end the program.
----------------------------------------
Nur was muss ich bei Punkt 3 genau machen? s. Anhang