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 Problem with breakpoint in Visual Studio (Read 450 times)
orbitcoms
Junior Member
**
Offline


Posts: 45
Joined: Jun 21st, 2017
Problem with breakpoint in Visual Studio
Jul 27th, 2017 at 3:41am
Print Post  
I have Visual micro and debugger installed in Visual Studio 2017. The target is Arduino Mega 2560.

I have set up a breakpoint and the action set to {configFlag} where configFlag is a global int variable.

When I compile the code I get the error below. If I remove the breakpoint it compiles without error.

Analog_Tx.ino: 97:49: error: expected '}' before 'else
Error compiling project sources
Debug build failed for project 'Analog_Tx'
   if (configFlag == configured) { LoadFromEeprom; else LoadDefaultSettings();__VisualMicro_DEBUG_1_GLastMillis__=
    debugger: The error shown above might be caused by invalid breakpoint syntax or the board is not yet supported for debugging.
                 If this is an unsupported debug board then switch the tool bar from 'Debug' to 'Release' and try the build again
Analog_Tx.ino: At global scope
 
Analog_Tx.ino: 98:1: error: 'configFlag' does not name a type
   configFlag = configured
 
Analog_Tx.ino: 99:1: error: 'EEPROM' does not name a type
   EEPROM.write(eeConfig, configured)
 
Analog_Tx.ino: 100:1: error: expected declaration before '}' token
  
Back to top
 
IP Logged
 
orbitcoms
Junior Member
**
Offline


Posts: 45
Joined: Jun 21st, 2017
Re: Problem with breakpoint in Visual Studio
Reply #1 - Jul 27th, 2017 at 4:02am
Print Post  
This Topic was moved here from Usb/Serial/Udp Debugging [move by] orbitcoms.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint