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 - Macros for DebugOutput - (Read 4563 times)
thjakob
Junior Member
**
Offline


Posts: 23
Joined: Apr 29th, 2013
- Macros for DebugOutput -
Nov 16th, 2013 at 12:19am
Print Post  
Good morning,

When debugging, verry often I'd like to display the current time (arduino-timestamp in a human readable Format...).
It would be cool, if I could do that by  - let't say:
  {PrintTime(now())}
... and 'yes', it should be formated in german...

I'm I missing something - or is that allready available?

Thank you
Thomas
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: - Macros for DebugOutput -
Reply #1 - Nov 17th, 2013 at 5:59pm
Print Post  
Hi,

This sounds interesting but can you please explain more about where you expect to see the time displayed?

Did you also know that on the BUG button of the serial monitor, you can set serial Text Messages to appear in the trace window which contains a rolling time stamp?

Would better formatting options in the expression watch window be a solution?
  
Back to top
IP Logged
 
thjakob
Junior Member
**
Offline


Posts: 23
Joined: Apr 29th, 2013
Re: - Macros for DebugOutput -
Reply #2 - Nov 25th, 2013 at 6:59pm
Print Post  
Hello Tim,

Thank you - and sorry for my late reply...

For the `macro`
I realize, that there is a `Macro` showing up allready in the `when hit...` section. But this point is greyed out - not found under what circumstanzes I could use it.
Any way -I'm looking for a solution to display the current Arduino time.  With  {now()} I get the seconds passed from what ever starttime I have defined.
I'd like to didplay {now()} in a human readable Format - so my thouht was, to have a function/macro that lifes on the `computer` side and let me render/display the value now() in an other representation (likely as you pointed out by the formatting options - yes!).

May be for that specific problem I can go on with this BUG-Button you mentioned - but I must have somthing on my eyes - can't discover what you ment...
May I ask you to explain how I can use `your` rolling time stamp?

Thank you
Thomas
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: - Macros for DebugOutput -
Reply #3 - Nov 26th, 2013 at 1:09pm
Print Post  
Hi Jacob the rolling time stamp should appear in the Micro Trace output window.

The red BUG button is on the top left of the serial window when the debugger is running.

If you watch the youtube video on the debugger page you should see the menu items of the bug button
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint