Visual Studio Stops Running My Code, and points at a Line (that has no errors)

Multi tool use
Multi tool use


Visual Studio Stops Running My Code, and points at a Line (that has no errors)



When I run my console program, it stops on the line depicted in the screenshot, and points a little arrow at it.
Here is the line
Here is the line



Details: I have tried to run the program without it, to see if it is the definitely the source of the problem, but it still stops running, and points that arrow shown in the screenshot at the NEXT line. If I continue commenting out everything the arrow points at, I eventually reach the curly bracket at the end of the method, which the arrow then points at... I don't even know what it's supposed to mean.



Any help to fix this would be highly appreciated.





The red circle to the left indicates that you have a breakpoint set on this line. So, if you run your program in the debugger, the debugger will pause the program when it hits/reaches a code line with a breakpoint. It is probably a good idea if you would spend some time learning the basics about the debugger in Visual Studio: docs.microsoft.com/en-us/visualstudio/debugger/…
– elgonzo
Jun 30 at 18:46





2 Answers
2



Click on the red circle in left side of your code to remove it, then start your program again! It’s gone :)



Just Press F5 to run the whole code or F10 to run the code line for line
It stops bcs you set a breakpoint in line 132, like elgonzo commented you already.
Press again F9 in line 132 to remove the breakpoint, or just click on the red dot/circle while ur code is NOT running.



Youtube also has a lot of awesome tutorials or read a C# book.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

fCU9UWLav8KI7,OTzW1OsoprRf1a3,ocAc
k,1pd49yDAVsdJ7 B2hsG6W96byV4DLJLX5qz r3 0UGPndSVNyw Yr2,vSxjOVrTgf7HoEh iC,b

Popular posts from this blog

PySpark - SparkContext: Error initializing SparkContext File does not exist

django NoReverseMatch Exception

List of Kim Possible characters