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
Hot Topic (More than 8 Replies) Unable to get rid of some automated debugging mode (Read 419 times)
laszlo.frank
Junior Member
**
Offline


Posts: 22
Joined: Feb 27th, 2017
Unable to get rid of some automated debugging mode
Oct 13th, 2025 at 7:07pm
Print Post  
I am using version 2.2024.0722.

Once I accidentally clicked the Build and Upload button instead of upload, and since then I am unable to get rid of the debugger starting automatically and also a tool window appearing like "Expression on COMx". 
I don't use the debugger and the tool window is quite intrusive covering other windows.
When I try to connect the serial port monitor the Output automatically switches to Micro DebugTrace and a Launching Debugger message appears.
I tried turning off the debugger at every possible locations in various settings in vain.
Please help me to get rid of this automated debugger mode, it is killing me. Angry
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2812
Joined: Feb 13th, 2019
Re: Unable to get rid of some automated debugging mode
Reply #1 - Oct 13th, 2025 at 7:16pm
Print Post  
If you select the Release Build configuration this should disable the debugger.

You can force it off in any configuration by setting:
1) vMicro > Debugger > Automatic Software Debugging (Debug/Release) to OFF
2) vMicro > Debugger > Debug set to Off
  
Back to top
IP Logged
 
laszlo.frank
Junior Member
**
Offline


Posts: 22
Joined: Feb 27th, 2017
Re: Unable to get rid of some automated debugging mode
Reply #2 - Oct 13th, 2025 at 7:25pm
Print Post  
Thank you Simon for your response, I believe I switched everything off but the problem is still present. Could you please check the screenshots attached?
« Last Edit: Oct 13th, 2025 at 8:01pm by laszlo.frank »  

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


Posts: 2812
Joined: Feb 13th, 2019
Re: Unable to get rid of some automated debugging mode
Reply #3 - Oct 14th, 2025 at 8:40am
Print Post  
That looks correct. 

Have you performed a Build and Upload with these settings since changing them?

Once the build and Upload has happened the Serial Debugger should no longer launch post upload, or when opening the Serial Monitor.
  
Back to top
IP Logged
 
laszlo.frank
Junior Member
**
Offline


Posts: 22
Joined: Feb 27th, 2017
Re: Unable to get rid of some automated debugging mode
Reply #4 - Oct 14th, 2025 at 2:20pm
Print Post  
Yes I did, let me show what happens, please see the screen capture video attached.
Basically the debugger doesn't give up starting automatically when serial line gets connected.
« Last Edit: Oct 14th, 2025 at 2:32pm by laszlo.frank »  

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


Posts: 2812
Joined: Feb 13th, 2019
Re: Unable to get rid of some automated debugging mode
Reply #5 - Oct 14th, 2025 at 2:38pm
Print Post  
Thanks for the video and agree something seems off.

Can you enable the below options:
  • vMicro > Compiler > Verbose
  • vMicro > Uploader > Verbose


Then perform a build and Upload and attach the complete output as a text file for us to review?
  
Back to top
IP Logged
 
laszlo.frank
Junior Member
**
Offline


Posts: 22
Joined: Feb 27th, 2017
Re: Unable to get rid of some automated debugging mode
Reply #6 - Oct 14th, 2025 at 3:11pm
Print Post  
When upload completes the debugger immediately jumps in, also clearing the log in the output window, so I had to collect the logs  in two separate steps.

Since this issue also the uploaded code does not work, esp can't start anymore.  While there is a slight chance it got corrupted at the same time vMicro went mad, but I think the probability of this is relatively low.

This is what I get in serial monitor:
17:22:44.194 -> 8




��


17:22:44.257 -> 

17:22:44.257 -> 


���

�8



����

�����

���
« Last Edit: Oct 14th, 2025 at 3:23pm by laszlo.frank »  

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


Posts: 2812
Joined: Feb 13th, 2019
Re: Unable to get rid of some automated debugging mode
Reply #7 - Oct 14th, 2025 at 3:55pm
Print Post  
Thanks for the logs, and nothing stands out currently and no Debugging code is being injected into the sketch from those logs.

Can you update Visual Micro to the latest release from our downloads page, as the version in use is over a year old, just so we can ensure we are able to debug in the latest version?
https://www.visualmicro.com/page/Arduino-Visual-Studio-Downloads.aspx
  
Back to top
IP Logged
 
laszlo.frank
Junior Member
**
Offline


Posts: 22
Joined: Feb 27th, 2017
Re: Unable to get rid of some automated debugging mode
Reply #8 - Oct 14th, 2025 at 4:16pm
Print Post  
Update to 2.2025.1009 completed, issue remains the same.
  
Back to top
 
IP Logged
 
laszlo.frank
Junior Member
**
Offline


Posts: 22
Joined: Feb 27th, 2017
Re: Unable to get rid of some automated debugging mode
Reply #9 - Oct 14th, 2025 at 4:55pm
Print Post  
I figured out that this behavior is related to project. If I compile and upload another project the issue is gone.  Also the uploaded code starts as expected on the same chip.

As soon as I return the original project the same problem appears again, and the code does not run (which used to run previously).

So can you help me to understand which project settings may influence this ?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2812
Joined: Feb 13th, 2019
Re: Unable to get rid of some automated debugging mode
Reply #10 - Oct 15th, 2025 at 9:19am
Print Post  
Thanks for the update, and yes the settings are stored within the project file.

From your video clip there are multiple projects in the solution, which could be causing some confusion.

First ensure the vMicro > General > "Active Code Has Priority Over Solution Explorer" option is unchecked.

Now set the project you want to disable debugging for as the Startup Project, and check the debug options are set to Off.

Now when building and uploading that project it should work as expected.
  
Back to top
IP Logged
 
laszlo.frank
Junior Member
**
Offline


Posts: 22
Joined: Feb 27th, 2017
Re: Unable to get rid of some automated debugging mode
Reply #11 - Oct 16th, 2025 at 9:09am
Print Post  
Unfortunately this does not solve the problem, the debugger always jumps in when the serial port gets connected.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint