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 Complex Library Framework Code Location Issues (Read 1765 times)
JusticeMan
Newbies
*
Offline


Posts: 8
Location: North Dakota
Joined: Apr 16th, 2016
Complex Library Framework Code Location Issues
Aug 7th, 2017 at 3:16pm
Print Post  
Does a Visual Micro Expert have experience relocating the files of a complex library framework that is in addition to the basic .ino file that the Arduino Ide allows for.  I see where the numerous files could be all in the same Arduino Ino Folder but how is debugging facilitated with that scenario?   Does the programmer shuffle from file to file within the same program to set breakpoints etc?  Probably some files part of the framework might not be pertinent & would not be loaded into the specific new project because they are not initialized anyway with the basic .ino file?  Dynamic memory concerns also exist with the project.

I read that Visual Studio C++ with the Visual Micro Plugin opens the door to multiple .ino files vs the single .ino file format with the Arduino Ide.  Can this help with encapsulation or protection of running of sections of code in parallel with other sections of code?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Complex Library Framework Code Location Issues
Reply #1 - Aug 7th, 2017 at 3:57pm
Print Post  
Hi,

Visual Micro does provide a lot of useful extra features that might help yet keep you within the arduino community. However I think it's a good idea to first understand arduino for what it is.

The arduino ide and visual micro support:-

- Multiple .ino files. These files are combined at runtime into a temp build folder and compiled as a single .cpp. 
- Additional .cpp and .h files
- These files must exist in or below the project folder.
- Libraries - These are normal cpp projects sources stored in a specific location. The location for "user" libraries is normally mydocuments/arduino/libraries. Libraries can be referenced by project code but can not reference project code.

There are rules published on arduino.cc for how to create and structure projects and libraries.

Lastly, 

You are right, the debugger keeps track of the combined .ino sources and re-points the break-point file and line numbers during a debug session so that the correct .ino file and line is selected.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint