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 Question mark in BP Message (Read 3786 times)
harpster
Newbies
*
Offline


Posts: 5
Location: Charlotte NC USA
Joined: Jan 25th, 2014
Question mark in BP Message
Feb 20th, 2014 at 6:15pm
Print Post  
I see in some examples code like this {i=?}. One example had:

Print message'The limit has been reached i={i=?, a={a=?} ... etc. 

I was wondering what the question mark is for and why not just write 
Print message'The limit has been reached i={i,a,c,d} ... etc. assuming those are variable names.

I'm sure this is basic but thinks for clearing this up for me!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Question mark in BP Message
Reply #1 - Feb 20th, 2014 at 6:27pm
Print Post  
Hi,

Fair question

You are right that you do not need =? as shown on the debugger overview page and youtube video

The debugger overview also includes this page which explains how you can elect variables to allow values to be update/modify during debug using =?

The yellow items below have =? set allowing you to click end edit the values which will be applied the next time the breakpoint is hit when in trace mode or immediately during break/pause




Thanks
« Last Edit: Feb 20th, 2014 at 6:29pm by Tim@Visual Micro »  
Back to top
IP Logged
 
harpster
Newbies
*
Offline


Posts: 5
Location: Charlotte NC USA
Joined: Jan 25th, 2014
Re: Question mark in BP Message
Reply #2 - Feb 20th, 2014 at 7:15pm
Print Post  
Thanks that might come in useful. The VM debugger has already saved me time and helped isolate and fix some problems in my code. Now I need to get more used to AVR studio.I'm more comfortable with it but still keep my source in Sketch and copy the file to AVR when I need to debug and then update the sketch.

One thing to add (possibly) is a float view along with the dec, hex & binary. I'm doing a lot of 32 bit calculations and I can read the 4-byte hex but I'm really looking for a float representation to know if the value is correct. Say 4.72 volts = 0x40970a3d.

Thanks and keep up the good work!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Question mark in BP Message
Reply #3 - Feb 22nd, 2014 at 6:45pm
Print Post  
Hi Harpster,

Confidence to change

The Visual Micro plugin ensures your Arduino development in avr studio remains fully Arduino compatible. You can be assured that it is possible to switch back to the Arduino Ide and your sketch will still compile.

You might be concerned of the additional files created in the sketch folder by avr studio and also the Visual Micro sub folder that is automatically created. None of these items are used for the compilation, you can delete everything that is not your own sketch code and Arduino will continue to work. What this means is that avr studio does not alter your sketch code.

Formats

We want to add better support for formats but you can do this now ... 

The debugger uses Arduino serial, wifi etc. and the data formats supported are the official documented Arduino syntax such as:-

Code
Select All
Serial.println(myVar,DEC);
Serial.println(myVar,HEX);
Serial.println(myVar,BIN); 



So Visual Micro allows the same syntax in your "When Hit" expressions

Code
Select All
{myVar,DEC}
{myVar,HEX}
{myVar,BIN} 

« Last Edit: Feb 22nd, 2014 at 6:48pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint