Serial.print not working consistently

Using:
Visual Studio 2017
Visual Micro for Visual Studio
Blynk version 0.4.10

I am having the devil’s own time figuring out how to get Serial.print to work.

I have two Blynk projects. One is fairly complicated, but works the widgets in the app properly, as least those that I can see, e.g., value display settings. Others I need to test with Serial.print messges.

The problem is that project #1, the complicated project, will not display the output of Serial.print or Serial.println. Neither will it display debug messages from breakpoints when in Debug mode. These breakpoints merely send messages to the output panel in VS, but otherwise continue program execution. The Serial.print messages used to work in an earlier version of the program.

Project #2, the simpler one, and build specifically as a test vehicle for this problem, will show both debug messages and Serial.print messages when in Debug mode. The Serial.print messages do not appear in the Release mode.

Both have the “#define BLYNK_PRINT Serial” in the .ino files.

I am at a loss. What am I missing?

Serial.print() is NOT a Blynk specific issue and not affected by Blynk library versions, etc… it is an Arduino command - Serial.print() - Arduino Reference

So you should be checking that you have all the required Arduino parameters (such as Serial.begin(), correct BAUD rates, etc.) in your sketch, and that they are not interfering with any other Serial process (i.e. Blynk’s USB-link, used for Arduinos without networking).

As for whether Visual Studio can affect Serial.print()… well that is a question for their site.

The #define BLYNK_PRINT Serial simply redirects any of Blynk’s basic internal print statements to said Arduino command, and #define BLYNK_DEBUG just greatly enhances the output.