“Run To Cursor” it’s an alternative option of Breakpoints we can use that option to debug my source code without breakpoints from where you want line by line, by the “Run To Cursor” we can save time of debugging, directly we can run from that line which we have to test by debugging and no need to start debugging by visual studio, try it must be use full for every developer, Let’s see how we can use “Run To Cursor”.
Step 1: Open visual studio-> file -> new Project->.

And Write a class MyMath with a function name Sum(int Value1,int Value2) which we have to into Main() and we have to debug that line we no need to use Breakpoints.

Now right click on that line from we have to start Debugging and go to “Run To Cursor”.

And then my output will be shows as the code.

Now enter two value and press enter and for next press F11 so we can debug line by line without breakpoints.

Now u can see the output.

Hope you will enjoy thanks ☺.
Run to the Cursor in Visual Studio
In this blog you will learn how to Run to the Cursor in Visual Studio.


SubashPosted Sep 9, 2016, 8:55 AM EDT
Thanks sir,just now i checked
Rupesh KumarPosted Dec 14, 2015, 2:31 AM EST
Thank's Nitin sir,Today i learned a new thing.
Rupali ShindePosted Oct 15, 2015, 9:21 PM EDT
good
Ajeet MishraPosted Sep 14, 2015, 4:08 AM EDT
nice
manish tiwariPosted Jan 21, 2015, 1:28 AM EST
Thanks sir for such a good concept..
Aman GuptaPosted Jan 9, 2015, 2:45 AM EST
this is very beneficial. Thanks Sir :)
Harpreet SinghPosted Jan 8, 2015, 8:48 PM EST
wow!! this is something new. Thanks for sharing with us sir :)
Vipin TyagiPosted Jan 8, 2015, 6:10 PM EST
Sir what is the basic benefit to use this type of technique........
Rajeev RanjanPosted Jan 8, 2015, 5:47 PM EST
today i learned a new thing. Thnx @nitin sir
Michal HabalcikPosted Jan 8, 2015, 3:55 AM EST
Honestly, I've never noticed that. Thanks for sharing.