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 Serial debugger fails to start if source formatting is changed (Read 1054 times)
Tim Jarrett
Newbies
*
Offline


Posts: 1
Location: Gosport, UK
Joined: Jun 18th, 2020
Serial debugger fails to start if source formatting is changed
Jun 19th, 2020 at 1:13am
Print Post  
Serial debugging fails if the setup function is defined -
Code
Select All
void
setup()
{
} 



Note that this is a perfectly valid construct in C and C++ and is often found.  

The same problem occurs in Atmel Studio and Visual Studio 2019, however in Visual Studio I see a warning message - 
Quote:
WARNING: Unable to find the start of the setup() method. This is required to initialize the software debugger.
which kind of indicates Visual Micro isn't parsing the source line correctly?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Serial debugger fails to start if source formatting is changed
Reply #1 - Jun 19th, 2020 at 1:15am
Print Post  
Thanks we will look into that. To use serial debugging we need to be able to find the setup method. We do have a new system ready to go that will handle the setup() over multiple lines but for now just change to:-

Code
Select All
void setup()
{
} 



Thanks
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint