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) Automatic debugger launch despite Release and Debug off in VS2022 (Read 1940 times)
emha69
Newbies
*
Offline


Posts: 9
Joined: Jul 21st, 2022
Automatic debugger launch despite Release and Debug off in VS2022
Feb 29th, 2024 at 3:31pm
Print Post  
I do not want to start debugger after upload, since it is release build and debugging
is set to off.

Despite that if serial console is used, this cannot be prevented. It is quite annoying.

Here is the log excerpt:
....
Wrote 605888 bytes (357853 compressed) at 0x00010000 in 5.7 seconds (effective 846.2 kbit/s)...
Hash of data verified.



You may need to put the board into bootloader mode again at this point



Automatic upload of www Files....
ESP32FSUpload.exe
"c:\program files\microsoft visual studio\2022\community\common7\ide\extensions\osqpjdds.xje/ESP32FSUpload.exe" -serial.port=COM8 elease" -target_platform="esp32" p32\tools\mkspiffs\0.2.3" -board.name="ESP32 Dev Module" -upload.verbose=True -upload.resetmethod={upload.resetmethod} -upload.speed=921600 sp32\2.0.14" -project.name="IX-MAIN-VS.ino" -project.path="C:\Works\Visualmicro\IX-MAIN-VS" -tools.esptool.cmd="{tools.esptool.cmd}" -tools.esptool.cmd.windows="{tools.esptool.cmd.windows}" -runtime.tools.esptool.path="{runtime.tools.esptool.path}" sa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0/bin/" -build.spiffs_start="{build.spiffs_start}" -build.spiffs_end="{build.spiffs_end}" -build.spiffs_pagesize="{build.spiffs_pagesize}" -build.spiffs_blocksize="{build.spiffs_blocksize}" -build.partitions="default" -network.password={network.password} -network.auth_upload={network.auth_upload} -network.port=3232 -upload.tool=esptool_py -tools.esptool_py.cmd="esptool.exe" -tools.esptool_py.cmd.windows="esptool.exe" esp32\tools\esptool_py\4.5.1" -build.flash_mode=dio -build.flash_freq=80m
Leaving...
Hard resetting via RTS pin...
Local data folder not found: C:\Works\Visualmicro\IX-MAIN-VS\data
Unhandled Exception*: System.SystemException: Local data folder not found: C:\Works\Visualmicro\IX-MAIN-VS\data
   at ESP8266FSUpload.ESP32FS.createAndUpload()
   at ESP8266FSUpload.Program.Main(String[] args)
     The upload process has finished.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2728
Joined: Feb 13th, 2019
Re: Automatic debugger launch despite Release and Debug off in VS2022
Reply #1 - Feb 29th, 2024 at 3:42pm
Print Post  
Can you enable the settings at the top of the page, and attach the complete log as a text file?

From the excerpt you have shown the debugger does not appear to be starting, it is simply trying to upload the files to the esp board, which is an option on the board menu "Automatic FS Upload", which can be set to OFF.
  
Back to top
IP Logged
 
emha69
Newbies
*
Offline


Posts: 9
Joined: Jul 21st, 2022
Re: Automatic debugger launch despite Release and Debug off in VS2022
Reply #2 - Feb 29th, 2024 at 4:32pm
Print Post  
Turning "Automatic FS Upload" to OFF does not help.

Attached is the log.
« Last Edit: Feb 29th, 2024 at 4:35pm by emha69 »  

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


Posts: 2728
Joined: Feb 13th, 2019
Re: Automatic debugger launch despite Release and Debug off in VS2022
Reply #3 - Feb 29th, 2024 at 5:59pm
Print Post  
Thanks for the logs.

Can you ZIP and attach the files from the ProjectFolder\__vm folder?

Can you also attach the local board.txt from your project?
  
Back to top
IP Logged
 
emha69
Newbies
*
Offline


Posts: 9
Joined: Jul 21st, 2022
Re: Automatic debugger launch despite Release and Debug off in VS2022
Reply #4 - Mar 1st, 2024 at 9:19am
Print Post  
As requested
  

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


Posts: 2728
Joined: Feb 13th, 2019
Re: Automatic debugger launch despite Release and Debug off in VS2022
Reply #5 - Mar 1st, 2024 at 1:00pm
Print Post  
Thanks for the files.

Can you confirm whether you have successfully uploaded your latest code (with Debug: Off) to the board?
  
Back to top
IP Logged
 
emha69
Newbies
*
Offline


Posts: 9
Joined: Jul 21st, 2022
Re: Automatic debugger launch despite Release and Debug off in VS2022
Reply #6 - Mar 1st, 2024 at 1:03pm
Print Post  
Yes, as it can be seen from previously attached log file.

https://www.visualmicro.com/public_html/yabbfiles/Attachments/log_030.txt

  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2728
Joined: Feb 13th, 2019
Re: Automatic debugger launch despite Release and Debug off in VS2022
Reply #7 - Mar 1st, 2024 at 2:51pm
Print Post  
Thanks for confirming.

Can you close down Visual Studio, and then delete the files from the __vm folder, then try building and uploading the project again afterwards?
  
Back to top
IP Logged
 
emha69
Newbies
*
Offline


Posts: 9
Joined: Jul 21st, 2022
Re: Automatic debugger launch despite Release and Debug off in VS2022
Reply #8 - Mar 1st, 2024 at 4:00pm
Print Post  
Removing the files form _VM folder helped to solve the problem. It behaves now as expected.
« Last Edit: Mar 1st, 2024 at 4:00pm by emha69 »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2728
Joined: Feb 13th, 2019
Re: Automatic debugger launch despite Release and Debug off in VS2022
Reply #9 - Mar 1st, 2024 at 4:10pm
Print Post  
Thanks for confirming.

If it happens again please add to this thread, there must have been an issue writing to the file causing it not to update the Upload.vmps.xml file.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint