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 $CALLER not working (Read 2982 times)
James Brown
Junior Member
**
Offline


Posts: 46
Location: Near San Diego
Joined: Jul 31st, 2012
When Hit $CALLER not working
Dec 16th, 2012 at 5:10pm
Print Post  
The When Breakpoint Is Hit works fine.  It will output messages and display variables alright.   

It also outputs $FUNCTION correctly

What I can't seem to get working is: $CALLER or $CALLSTACK
Is there an example?
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: When Hit $CALLER not working
Reply #1 - Dec 16th, 2012 at 5:17pm
Print Post  
Hi James,

The % special names are a part of normal visual studio debug. I've tried to apply some of them to arduino simply because the "when hit" dialog shows them in the hint. BUT there is no way to know $CALLER or $CALLSTACK which is why they don't do anything.

You can use SHIFT+F12 in vs to show all code that calls a particular function and add TracePoints to each. In effect the trace will then show the caller. 

Not quite as nice a solution but it works  Smiley
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint