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 Seeing entire object in debugger (Read 5523 times)
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Seeing entire object in debugger
Jul 30th, 2016 at 7:56pm
Print Post  
Is it (or will it ever be) possible to see an entire object or struct in the debugger? This would be a hugely useful capability (e.g. {mySettingsStruct})
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Seeing entire object in debugger
Reply #1 - Jul 30th, 2016 at 8:19pm
Print Post  
It  might be. There is an advanced version of the usb debugger which might be released in the future but the ui might be moved to a similar system release for the arduino zero.

Of course can do this already with the Arduino Zero Gdb debugging
  
Back to top
IP Logged
 
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Re: Seeing entire object in debugger
Reply #2 - Jul 30th, 2016 at 11:53pm
Print Post  
So if I buy an arduino zero board, I can debug and see objects using the current version of Visual Micro, correct? 

Given that the zero does not appear in the drop down list of boards, I suspect that there is something else I am missing.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Seeing entire object in debugger
Reply #3 - Jul 31st, 2016 at 12:09am
Print Post  
Hi Bob,

Yes if you install the Android Tools for Visual Studio they provide a gdb debugger which Visual Micro will use for Arduino Zero boards. In this case you do not see the standard visual micro debug tool but the visual studio debugger via gdb. 

If you have a .vcxproj file created before the last release of Visual Micro then you need to follow the simple guide to add two properties to the .vcxproj file. Shown in the "existing users note" on the gdb release notes page

All non-avr Arduino hardware is installed via Boards Manager described in the documentation

The release notes are always worth reading because they also often summarize new features and additions

« Last Edit: Jul 31st, 2016 at 12:18am by Tim@Visual Micro »  

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Seeing entire object in debugger
Reply #4 - Jul 31st, 2016 at 12:20am
Print Post  
ps: If you use gdb then also read the gdb pages in the documentation
  
Back to top
IP Logged
 
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Re: Seeing entire object in debugger
Reply #5 - Jul 31st, 2016 at 12:22am
Print Post  
That's great news Tim.

I am going off-the-grid for a week will will order a Zero in the meantime. 

I also solved my vTable problem. Can't create a new instance of an object within a constructor... or at least that's what it seemed to be.

Thanks,

Bob
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Seeing entire object in debugger
Reply #6 - Jul 31st, 2016 at 12:25am
Print Post  
Great thanks for the update.

Don't forget the zero is 3.3v not 5v

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Seeing entire object in debugger
Reply #7 - Aug 2nd, 2016 at 6:06pm
Print Post  
The next release contains gdb debug support two more arduino compatible texas instrument boards.

I have to say that I really like the TI boards. 

They are faster than the arduino zero, much cheaper, have more pins, 5 volt tolerant and upload speed after program build is almost instant (in my tests).

I think there are two versions/speeds. 80mhz (123) and 120mhz (129). I played with the 80mhz and it seemed really great, only cost about $15

http://www.ti.com/tool/ek-tm4c123gxl

You can install the Energia Ide from here http://energia.nu/download/

In the Visual Micro Ide Locations / Configuration Manager there is an entry for Energia. Add the location of the energia ide. This allows you to easily switch between Arduino and Energia boards using the toolbar. (Visual Micro allows more than one ide to be registered at the same time)

The specification seems huge to me and the Ti hardware always seems very mature. Energia has been around a while now and in the background it uses some very well written Ti core with an Arduino/.ino compatible layer over the top.

  • Approx $15
  • 80MHz
  • 256KB Flash
  • 32KB RAM
  • 2-KB EEPROM
  • On-chip ROM with drivers and boot loaders
  • 2x 12ch 12-bit ADCs (1 MSPS)
  • 16x Motion PWM channels
  • 24x Timer/Capture/Compare/PWMs
  • 3x Analog comparators
  • 4x SPI/SSI, 4x I2C, 8x UART
  • USB Host/Device/OTG
  • 2x CAN
  • Low-power hibernation mode
  • 43x GPIO pins
  • RGB Led + User switches





 
« Last Edit: Aug 2nd, 2016 at 6:09pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint