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 Unable to create variable object shown for Action (Read 1419 times)
Pete Gallagher
Newbies
*
Offline


Posts: 8
Joined: Jun 19th, 2020
Unable to create variable object shown for Action
Jun 22nd, 2020 at 9:24am
Print Post  
Howdy,

I'#m just running through the examples here;

https://www.visualmicro.com/page/User-Guide.aspx?doc=Working-With-Breakpoints-Wh...

When I add the following to the Action;

The value of counter is {counter=?}

The following is shown in the Output window;

Quote:
The value of counter is -var-create: unable to create variable object
.

I've defined "int counter = 0" of course, and I'm incrementing it when I press a button on my board.

I'm also not sure how to view the Expression Window. I've clicked the Serial Monitor button, which shows the monitor, but not the Expressions.

I've attached a screenshot and my build log.

Thanks!
  

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


Posts: 2143
Joined: Feb 13th, 2019
Re: Unable to create variable object shown for Action
Reply #1 - Jun 22nd, 2020 at 9:38am
Print Post  
The =? is to allow variables to be edited when using the vMicro Serial Debugger option specifically, and from the above this is not the case (set to Hardware).

When added via GDB (Hardware) the variable will be editable automatically in the watch pane / as well as Locals / Autos, and you won't have to add it to the break point output unless a specific message is desired in the output window.

The Watch / Locals / Autos windows can be viewed from Debug > Windows menu once the debugger has started, and variables can be highlighted and right click to add to watch expressions.

Also ensure the optimization is set to No Project at least to ensure the variables aren't optimized out by the compilation process.

The ESP32 Hardware Debug video may be worth a look, and let us know if the above is unclear in any way...
  
Back to top
 
IP Logged
 
Pete Gallagher
Newbies
*
Offline


Posts: 8
Joined: Jun 19th, 2020
Re: Unable to create variable object shown for Action
Reply #2 - Jun 22nd, 2020 at 10:05am
Print Post  
Ah! I understand... Fab...

Thanks for that...

Does this also apply to the Digital Pins Monitor too?

Thanks very much for the speedy response... Awesome!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to create variable object shown for Action
Reply #3 - Jun 22nd, 2020 at 10:16am
Print Post  
Yes currently GDB supports only the standard VS debug windows. No graphical views. 

We are working on grapical digital/analog/charting options for GDB, expect to release over coming few months. 

You can use Microsoft NatVis with GDB but it can be slow and harder work and more complex to configure than the Viual Micro serial/wifi debug tools.

https://docs.microsoft.com/en-us/visualstudio/debugger/create-custom-views-of-na...
« Last Edit: Jun 22nd, 2020 at 10:16am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Pete Gallagher
Newbies
*
Offline


Posts: 8
Joined: Jun 19th, 2020
Re: Unable to create variable object shown for Action
Reply #4 - Jun 22nd, 2020 at 10:24am
Print Post  
I understand, Thanks for the clarification...

Cheers!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint