The breakpoint is inserted at the cursor position. Use a breakpoint to interrupt a program just before an error occurs. You can then troubleshoot the program by running it in Single Step mode until the error occurs. You can also use the Watch icon to check the content of the relevant variables.