- Mastering Visual Studio 2017
- Kunal Chowdhury
- 179字
- 2025-04-04 18:47:05
The Run to Click feature
Debugging now becomes easier with Visual Studio 2017. You can simply click on an icon next to a line of code to run to that line while debugging. When you have stopped at a breakpoint, just click on the green Run to Click icon that subtly appears next to the line of code that your mouse is hovered over. This will reduce the burden of adding temporary breakpoints and several steps that need to be performed to break the debugger to a specific line on the fly:

This feature is enabled by default. To disable it, click on the menu item Tools | Options and then navigate to Debugging | General. Alternatively, you can directly navigate there by clicking on the menu item Debug | Options. Scroll to the end of the right-side panel and find an option labelled Show run to click button in editor while debugging. Uncheck it to disable the feature.
If you want to re-enable it later, follow the same steps and check the aforementioned option. Consider the following screenshot:
