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 When hit breakpoint, display only a variable (Read 5869 times)
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
When hit breakpoint, display only a variable
Feb 27th, 2014 at 1:51pm
Print Post  
Hi,

I have set a When hit breakpoint to only this {var_name}. The value displays fine in the Expressions window, but nothing is displayed in the Output Windows (actually set to Micro Debug Message).

Looks like for this kind of breakpoint, there has to be at least one character to display, if not, the printing to the output seems to skip  Sad.

Why do I want to get only the contents of a variable ? To select a bunch of values and copy to Excel for some calculations.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: When hit breakpoint, display only a variable
Reply #1 - Feb 27th, 2014 at 4:02pm
Print Post  
Hi Giles

If there is no text message, only watched expressions, then you will not see a message in the message output. You will see the values in the Trace and as you have said in the expressions window.

Yesterday you asked how to have text messages show in the message output window and not in the Trace. So now you will only see text messages in the message window  Smiley

  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: When hit breakpoint, display only a variable
Reply #2 - Feb 27th, 2014 at 4:06pm
Print Post  
Ahum,

the value of a variable is text  Smiley.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: When hit breakpoint, display only a variable
Reply #3 - Feb 27th, 2014 at 4:12pm
Print Post  
Okay I understand now. That's sort of funny.

Visual Micro sees text as text typed into the When Hit message. Anything in {} is considered an expression regardless of it's contents.

I think you will need to add some text, can't think of any easy way to determine that you want the text message to come from a big {string} expression stored on the Arduino. To be honest, if we put the facility in everyone will use it and the Arduino will quickly run out of its limited memory. I know that in your case you are doing something slightly different but hopefully this makes sense to you.

Can you add some text to the beginning or end of the when hit message. A lone space char won't work in future versions, needs to be non-white space.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: When hit breakpoint, display only a variable
Reply #4 - Feb 27th, 2014 at 4:14pm
Print Post  
maybe we need a new setting. "Show expressions in message window"
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: When hit breakpoint, display only a variable
Reply #5 - Feb 27th, 2014 at 4:16pm
Print Post  
What I have done is: var_name,{var_name}. This way I get a csv format. I copy to notepad, save, and open in Excel.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: When hit breakpoint, display only a variable
Reply #6 - Feb 27th, 2014 at 4:35pm
Print Post  
Neat idea
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint