Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Preprocessor seems to fail on new install (Read 73 times)
Bob4K
Junior Member
**
Offline


Posts: 19
Joined: Dec 30th, 2015
Preprocessor seems to fail on new install
Feb 13th, 2026 at 7:25pm
Print Post  
Hi,

I switched from Windows 10 Pro to Windows 10 IoT Enterprise.

I bought an upgrade to Visual Micro to install the latest version on VS2026:

Visual.Micro.Arduino.Studio_2025_1009_2204.vsix

I installed the required libraries and the:

Version: 2.3.7
Date: 2025-12-17T16:05:25.389Z
CLI Version: 1.3.1

IDE

The last sketch I was working before still compiles nicely with the IDE:

Sketch uses 90244 bytes (34%) of program storage space. Maximum is 262144 bytes.
Global variables use 14276 bytes (43%) of dynamic memory, leaving 18492 bytes for local variables. Maximum is 32768 bytes.

But fails with VM with errors like:

GoldCont.ino: 452:0: error: unterminated #ifdef

These are plain wrong, there is no mismatch.

If I look at the cpp generated file in C:\Users\m1\AppData\Local\Temp\VMBuilds\GoldCont\unor4wifi\Debug\
the file is wrong, #if structure is mangled.

I tried to set the IDE to 2.0 (see attached image) but that does not stick, it reverts to 1.6/1.8

I tested also VS2022, same errors.

What can I do to solve that?
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2864
Joined: Feb 13th, 2019
Re: Preprocessor seems to fail on new install
Reply #1 - Feb 18th, 2026 at 10:07pm
Print Post  
Sorry for the delayed response.

Firstly can you change the Build Configuration to "Release" which will turn off the Visual Micro Serial Debugger (which is not present in the Arduino IDE).

If this still fails can you email or attach a copy of the INO file and also the build log from the Arduino IDE with the File > Preferences > Verbose Output During Compile enabled?
  
Back to top
IP Logged
 
Bob4K
Junior Member
**
Offline


Posts: 19
Joined: Dec 30th, 2015
Re: Preprocessor seems to fail on new install
Reply #2 - Feb 18th, 2026 at 10:33pm
Print Post  
Simon@Visual Micro wrote on Feb 18th, 2026 at 10:07pm:
Sorry for the delayed response.


No problem at all!


Quote:
Firstly can you change the Build Configuration to "Release" which will turn off the Visual Micro Serial Debugger (which is not present in the Arduino IDE).

If this still fails can you email or attach a copy of the INO file and also the build log from the Arduino IDE with the File > Preferences > Verbose Output During Compile enabled?


That works now:


Program GoldCont size: 99420 bytes (used 38% of a 262144 byte maximum) (8.26 secs)

Question before I upload: can I still set up breakpoints in "Release" mode?

If not, how can I test aside using Serial.println()?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2864
Joined: Feb 13th, 2019
Re: Preprocessor seems to fail on new install
Reply #3 - Feb 18th, 2026 at 10:39pm
Print Post  
Glad that has helped, can you email us the iNO file so we can work out what has tripped up the Serial Debuggers code injection in this case?

Yes you can set them up, they just aren't injected into the compiled code unless the Serial Debugger is enabled (i.e. Debug configuration with standard settings).

You can also use the Hardware Debugging for the Uno R4 with no extra probe or wiring, which does reduce some features (@plot charts, hit count break points, a limited number of break and traces, no WiFi support), but you can evaluate variables and change breakpoints on the fly whilst running the debugger.

Hardware Debugging Video: https://www.youtube.com/watch?v=AFqqiqxGxL0
Hardware Debugging Documentation: https://www.visualmicro.com/page/UnoR4-Debugging.aspx
  
Back to top
IP Logged
 
Bob4K
Junior Member
**
Offline


Posts: 19
Joined: Dec 30th, 2015
Re: Preprocessor seems to fail on new install
Reply #4 - Feb 18th, 2026 at 10:51pm
Print Post  
Here is the ino.

Thanks for the links, I'll look at then tomorrow.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint