Tuto WEBDEV 25

Part 10: Optimizing and debugging a project 373 ▶ To end this test, we will be using an "Auto-stop" expression. An "Auto-stop" expression is used to start the debugger as soon as a condition is checked or when the value of a variable is modified. In our example, the debugger will be started as soon as the stock value is equal to 50: 1.  In the "Debugger" pane, select the "Product.Stock" expression that was added beforehand. 2. Click the green circle. 3. Press F5 to continue the test. 4. A message is displayed, indicating that the value of "Product.Stock" expression changed. 5. Validate. 6.  In the "Debugger" pane, select the "Product.Stock" expression. Click the expression again: the "Expression" column becomes editable. In the "Expression" area, add "=50". You will get "Product.Stock = 50". 7. Press F5. The program continues to run. The debugger is started again when the value of Product.Stock variable is equal to 50. ▶ That’s it, the main features of debugger have been presented here. To stop the test in the debugger, click "End the test" found in the ribbon.

RkJQdWJsaXNoZXIy NDQ0OA==