Подія
31 бер., 23 - 2 квіт., 23
Найбільший навчальний захід SQL, Fabric і Power BI. 31 березня – 2 квітня. Щоб заощадити 400 грн, скористайтеся кодом FABINSIDER.
Реєструйтеся сьогодніЦей браузер більше не підтримується.
Замініть його на Microsoft Edge, щоб користуватися перевагами найновіших функцій, оновлень безпеки та технічної підтримки.
Applies to:
SQL Server
Azure SQL Managed Instance
This topic describes how to set breakpoints in a trace file or table that you want to replay by using SQL Server Profiler. Setting breakpoints in a trace file or table before you start to replay the trace, enables you to pause replay of the trace at specific events. Using breakpoints while replaying a trace supports debugging because you can break the replay of long trace scripts into short segments that can be analyzed incrementally.
Open the trace file or trace table you want to replay. For more information, see Open a Trace File (SQL Server Profiler) or Open a Trace Table (SQL Server Profiler).
Make sure that the trace file or table you open contains the event classes necessary for replay. For more information, see Replay Requirements.
In the trace window, click an event that you want to use as a breakpoint. Use one of the following three methods to set a breakpoint:
Press F9.
On the Replay menu, click Toggle Breakpoint.
Right-click the event, and then click Toggle Breakpoint.
A red bullet appears next to the selected trace event, indicating that it is the trace breakpoint.
Repeat this step to set several breakpoints.
On the Replay menu, click Start, and connect to the server where you want to replay the trace.
In the Replay Configuration dialog box, verify the settings, and then click OK.
The replay starts, pausing when the breakpoint is reached.
Press F5 to resume the replay and proceed to the next breakpoint.
Repeat Step 5 through the end of the trace.
Replay to a Cursor (SQL Server Profiler)
Replay Traces
SQL Server Profiler
Подія
31 бер., 23 - 2 квіт., 23
Найбільший навчальний захід SQL, Fabric і Power BI. 31 березня – 2 квітня. Щоб заощадити 400 грн, скористайтеся кодом FABINSIDER.
Реєструйтеся сьогодніНавчання
Модуль
Interactively debug .NET apps with the Visual Studio debugger - Training
Learn how to efficiently debug your .NET app by using Visual Studio to fix your bugs quickly. Use the interactive debugger within Visual Studio to analyze and fix your C# applications.