Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
khi bạn chuyển sang cái gì khác. Nếu bạn cần phải chỉnh sửa các nhà xây dựng một lần nữa, bạn có thể nhận được để nó dễ dàng bằng một trong hai cách nhấp đúp vào entry của nó trong khung bên dưới tab View Class hoặc bằng cách chọn từ menu thả xuống bên phải phía trên cửa sổ hiển thị mã. | Chapter 10 toolbar and select or deselect a toolbar in the list. Make sure you check the box against Debug to display the debugging toolbar. It comes up automatically when the debugger is operating but you should take a look at what it contains before you get to start the debugger. You can change the build configuration by extending the drop-down list and choosing the alternative. You can also use the Build Configuration Manager. menu option. The Standard toolbar is shown in Figure 10-1. Figure 10-1 You can find out what the toolbar buttons are for by letting the mouse cursor linger over a toolbar button. A tool tip for that button appears that identifies its function. The Debug configuration in a project causes additional information to be included in your executable program when you compile it so that the debugging facilities can be used. This extra information is stored in the .pdb file that will be in the Debug folder for your project. The release configuration omits this information as it represents overhead that you wouldn t want in a fully tested program. With the Professional or Enterprise versions of Visual C 2005 the compiler also optimizes the code when compiling the release version of a program. Optimization is inhibited when the debug version is compiled because the optimization process can involve resequencing code to make it more efficient or even omitting redundant code altogether. Because this destroys the one-to-one mapping between the source code and corresponding blocks of machine code optimization makes stepping through a program potentially confusing to say the least. The debug toolbar is shown in Figure 10-2. Figure 10-2 If you inspect the tooltips for the buttons on this toolbar you get a preliminary idea of what they do you will use some of them shortly. With the example from Chapter 4 you won t use all the debugging facilities available to you but you will try out some of the more important features. After you are familiar with stepping .