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 Multiple targets or another way to debug (Read 1287 times)
HomerRamone
Junior Member
**
Offline


Posts: 38
Joined: Feb 5th, 2022
Multiple targets or another way to debug
Feb 12th, 2022 at 1:43pm
Print Post  
I'm just wondering if its possible to have an ESP32 project that also has windows as the target platform ? 
Obviously the ardunio code isnt going to build on windows, but this can be dealt with in code IE
#if TARGET_WINDOWS
SomeObject = new WindowsThing();
#else if TARGET_ ARDUNIO
SomeObject = new ArdunioThing();
#endif 

This would allow creating most of the logic for a project in an environment that allows "full" debugging.

Alternatively are there any better debugging options ? Whilst the bps that are provided are certainly helpful being able to inspect variables at a breakpoint w/o needing to compile to do so would be great.

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


Posts: 2174
Joined: Feb 13th, 2019
Re: Multiple targets or another way to debug
Reply #1 - Feb 23rd, 2022 at 5:21pm
Print Post  
Yes you can write library projects as Shared Projects, which allows you to take advantage of the Unit Testing and Debugging features, when its included in a separate Windows Target project.

The Hardware Debugging options in Visual Micro allow breakpoints to be moved at runtime, with variable inspection, and stepping actions also available, however require an external probe for a majority of boards.

To see a list of the differences in debugging the below table should help:
https://www.visualmicro.com/page/User-Guide.aspx?doc=Arduino-gdb-Differences.htm...

The documentation index has sections for Serial Debugging, and Hardware Debugging to show more detail about configuring it for your board:
https://www.visualmicro.com/page/User-Guide.aspx?doc=index

There is also an Instructable and Video about setting up a Shared Library Project, so it can be Unit tested on your PC, and incorporated into an Arduino Project:
Instructable: https://www.instructables.com/Arduino-Shared-Project-PC-Debugging-and-Automated-...
Video: https://www.youtube.com/watch?v=Pbpis0tdg3A
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint