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 $FUNCTION not working (Read 2961 times)
AndreaV
Newbies
*
Offline


Posts: 2
Joined: Sep 7th, 2014
$FUNCTION not working
Dec 30th, 2014 at 1:56am
Print Post  
Hello,
I am trying the $FUNCTION special keywork within a "When Hit" Breakpoint condition.
This keyword should be supported as per the documentation but instead it is ignored and nothing will print when hit.

For example by using:
Hello from the $FUNCTION function

I get the following in the Micro Debug Trace:
Hello from the  function

I am running the latest version 1412.10, and also SP2 does not make it work. Cry

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: $FUNCTION not working
Reply #1 - Dec 30th, 2014 at 3:31am
Print Post  
Hi,

$FUNCTION works okay but I think it is Visual Studio causing some confusion.

If you place a breakpoint in a function then the function name is populated but if you place the breakpoint on the function name then it is not?

For some reason Visual Studio does not provide the name of a function for a breakpoint that is placed on the name of the function.

You can see this by placing two breakpoints, one inside and one on a function, then look ati the breakpoint tool tips or the breakpoint listing window. You will see when a function name will be available during debug.

Thanks
  
Back to top
IP Logged
 
AndreaV
Newbies
*
Offline


Posts: 2
Joined: Sep 7th, 2014
Re: $FUNCTION not working
Reply #2 - Dec 30th, 2014 at 5:41pm
Print Post  
Hello Tim,
first I'm in Atmel Studio 6.2, don't know if what you say applies to it as well.
However I don't fully understand your comment: I just followed the sample in the documentation and it does not work as indicated. See "Showing the function name" in http://www.visualmicro.com/page/User-Guide.aspx?doc=Working-With-Breakpoints.htm...

Can you share a sample project that shows it working right?

Thanks
Andrea
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint