✅ Caesar Cipher Code Not Returning Anything
This is my code. I'm not understanding why, when I build this, nothing is outputted to the Console. Can anyone help?
14 Replies
I will send the code in a second.
Have you tried debugging to see what's happening as it runs?
I'm not really sure where I should put things
Just everywhere?
I've not had any experience debugging so it's not natural to me where I should do it
In the code
You can put a breakpoint straight away at
Encoder encoder = new...
and then just step through one line at a time
$debugTutorial: Debug C# code - Visual Studio (Windows)
Learn features of the Visual Studio debugger and how to start the debugger, step through code, and inspect data in a C# application.
I put a breakpoint there but when I run the program it still just executes everything...
I do this:
Then I hit F5. Then the entire thing runs and then finishes.
It doesn't pause at line 7
Changing it to this and still nothing gets called
I just realized that the program isn't running
Main()
@SinFluxx Did I structure it properly there?Is that definitely the project visual studio is running/the only file in your project?
Yes. I don't have any other VS windows open.
Ah
How do I fix that?
Ok I figured it out, it was a top-level issue
Ok, all working!
Thanks for the help.