One way of doing that would be to set a code breakpoint at the entry to the main function and when it breaks, set all the watchpoints.
Одним из способов сделать это будет установить точку останова на входе в функцию main, и, когда программа остановится, установить все точки
Alte rezultate
The programmer set a breakpoint in the code to troubleshoot the error.
Set the breakpoints in the code you want to examine.
The column on the left side is used to set breakpoints in the program code.
You should definitely remove dead code, but be careful to make sure that you haven't missed a breakpoint or interactive element.
Вы должны обязательно удалить мертвый код, но будьте осторожны, чтобы убедиться, что вы не пропустили точку останова или интерактивный элемент.
Diagnosing such issues can sometimes take hours of searching through source code and repeated guesses where to set breakpoints.
You can set and remove breakpoints, step through your code, check the values of variables, and display a call-stack trace.
Можно вставлять и удалять точки останова, выполнять код пошагово, проверять значения переменных и отображать трассировку стека вызовов.
During debug user can change source code, so positions of breakpoints in source code and in debugging process could differ.
Note: the breakpoint must be set on a line with code that will execute when the function runs.
Заметка: точка остановки должна быть установлена на строке кода, который будет запускать функцию.
Run code starting from the first line, or from the current breakpoint, if the program stopped there before
Запуск кода, начиная с первой строки или с текущей точки останова, в которой программа была остановлена
But it's about setting a breakpoint to find the flaw in the code, fix it, and carry on until we hit the next flaw... the quest to keep going, to always fight for footing.
А в том чтобы установить точку останова чтобы отыскать ошибку в коде, исправить её, и запустить вновь до следующей ошибки... поиск ради продолжения, всегда борясь за опору.
Breakpoints can be set in both the SQL script and in your.NET code, making debugging a simple process.
Для упрощения процесса отладки как в сценарии SQL, так и в.NET-коде пользователя могут быть установлены точки прерывания.
For instance, you might have a loop that iterates a bunch of time before the relevant code is reached - in a situation like that, you could simply place a breakpoint and then configure an appropriate condition.
Например, у вас может быть цикл, который повторяется много раз до достижения соответствующего кода - в такой ситуации вы можете просто разместить точку останова, а затем настроить соответствующее условие.