Hi @kritishah ,
Welcome to Microsoft Q&A!
Are you using Visual Studio Code?
The tag “Visual Studio Debugging” is related to Visual Studio IDE which is different from the Visual Studio Code.
If you have any questions, please report it in dedicated Visual Studio Code forum or Go forum.
For your issue, I suppose the anotherMessage is not defined properly. Maybe you can check the following:
Sincerely,
Anna
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.