Help with counter
https://paste.ofcode.org/SD2dfetkQpeUsDmrMVbDab
not sure why its not working thanks ❤️
26 Replies
Define "not working"
Does the counter not increment? Does it crash? Is the output not what it should be?
yes
everytime I run the code
it doesn't count up
and just closes
Add
Console.ReadLine()
at the very end
VS just closes the console when the program finishes running, by defaulti got an error tho
It can be changed somewhere in the settings, IIRC, but a
Console.ReadLine()
or even a Console.Read()
is a quick way to basically add "press any key to continue"What error?
;
yeah
m dumb
Now it will wait for
Enter
before closingm still didn't work that's odd
it counted to one then closed
Try
Tools->Options->Debugging->Automatically close the console
Disable thatunder
which sub tab is it in
this?
Yeah
I see it's disabled already
yepp
Try runnin without debug
Ctrl+F5 instead of F5
I just click the play button
i tried urs still closed again
that's odd
Aight
Try
Tools -> Options -> Project and Solutions -> Build and run
Set On run, when build or deployment errors occur...
to Do not launch
I did
still closed
Huh
Try
.Read()
instead of .ReadLine()
...?Got some help and it worked thanks!
I'm 99% sure you have "run latest build if compilation failed" turned on
which is just a terrible setting that should be removed, imho
mine doesn't
and i'm pretty sure i didn't change the setting?
Maybe it's no longer enabled by default
@crayy