I'm using Visual Studio 2019 to build a MUD (a text based game popular in the early '90's). I'm trying to figure out a way to "play the game" and watch the code execute while I'm doing it. And by "play the game" I mean enter a command like "cast 'acid blast' goblin", set a break point in the code where that command is initiated and then step through the code line-by-line and see the output as it shows in the game. Yes, I realize I might have to step through 90 lines of code before I see output but that's the point. I want to see how a particular command is executed.
The problem I'm running into is the game as it is runs from an executable created when the code compiles. I run the .exe file from a DOS prompt and the game runs in the background. I connect to the game from a MUD client and play the game that way. I can enter "cast 'acid blast' goblin" in the game client but I can't see the code at that point. I need a way to start the game from VS and be able to enter commands and watch the code while it executes in VS.
Do you guys know how to do that?
