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 Limit debug messages (Read 3606 times)
Bas
Junior Member
**
Offline


Posts: 50
Joined: Feb 20th, 2017
Limit debug messages
Mar 12th, 2017 at 8:48pm
Print Post  
Is it possible to disable the standard message that is included in the Debug trace containing the timestamp, sourcefile and line number?

Sometimes I find it more confusing then helpfull, esp when a lot of debug mesages are generated by breakpoints.

So in stead of this:
Code
Select All
Launching Debugger...
Program Started 'CSense'
21:40:39.963    SenseNextionCommandHandlerCached.cpp, line 72	readNextCommand(uint8_t* aPayload)	lastCommand=102
   nexCommand read from buffer: 102
21:40:39.976    SenseNextionCommandHandlerCached.cpp, line 128	processCommandsInBuffer()	cmd=102
   processing command: 102
21:40:40.886    SenseNextionCommandHandlerCached.cpp, line 72	readNextCommand(uint8_t* aPayload)	lastCommand=255
   nexCommand read from buffer: 255
21:40:40.889    SenseNextionCommandHandlerCached.cpp, line 128	processCommandsInBuffer()	cmd=254
   processing command: 254
 




I would like this:
Code
Select All
Launching Debugger...
Program Started 'CSense'
   nexCommand read from buffer: 102
   processing command: 102
   nexCommand read from buffer: 255
   processing command: 254
 

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Limit debug messages
Reply #1 - Mar 12th, 2017 at 9:11pm
Print Post  
Hi,

From memory there should always be three different trace files per session

The RAW one should just contain what was sent/received?

Can you confirm if this is the case?

Thanks
  
Back to top
WWW  
IP Logged
 
Bas
Junior Member
**
Offline


Posts: 50
Joined: Feb 20th, 2017
Re: Limit debug messages
Reply #2 - Mar 13th, 2017 at 9:25pm
Print Post  
I'm not quite sure what you mean by trace file, but according to the combobox above the messages pane, I have the following traces:
- Micro Build
- Micro Debug messages
- Micro Debug Trace

The Build contains the build log (duh)
The Debug trace contains the trace as posted earlier (including sourcefile and position)
The Debug messages is empty
  
Back to top
 
IP Logged
 
Bas
Junior Member
**
Offline


Posts: 50
Joined: Feb 20th, 2017
Re: Limit debug messages
Reply #3 - Apr 10th, 2017 at 2:40pm
Print Post  
Any news on this?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Limit debug messages
Reply #4 - Apr 10th, 2017 at 3:47pm
Print Post  
I think I already answered the question, sorry if I was not clear

The default configuration shows trace and your messages combined.

You can use the context menu that appears when you click the BUG icon on the Serial Monitor to change this behaviour.

You need to un-check messages in trace and check messages in the message window

Then you will find that you have two outputs during debug. The main output will be displayed automatically when debug starts and will not include all the information you mentioned?

Please see the documentation for more info:-

http://www.visualmicro.com/page/User-Guide.aspx?doc=Serial-Monitor-Options-Butto...

see #6

« Last Edit: Apr 10th, 2017 at 3:48pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Bas
Junior Member
**
Offline


Posts: 50
Joined: Feb 20th, 2017
Re: Limit debug messages
Reply #5 - Apr 10th, 2017 at 7:11pm
Print Post  
Yes that was exactly wwhat I was looking for!

Thanks.

If I can make a small suggestion:

The menus names are a bit confusing to me:
Message Windows 
    -- Serial   
    -- Messages
    -- Trace

Disabling Trace means that trace info will not be in the Message window and it will get its own Trace window 
So actually (if I understand correctly) the options below "Message Windows" selects which info is going into the Message Window...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Limit debug messages
Reply #6 - Apr 10th, 2017 at 7:23pm
Print Post  
I am not saying the terminology is correct but you description of the feature is not quite right Smiley

You have the option to show message in 3 different windows at the same time.

1) In the Trace
2) AND in a separate messages window
3) AND in the Serial Monitor

Some users like separate window but also to see the messages in the trace so they can more easily understand where the message was created in the arduino code. Then it can also be useful to see a list of messages on their own for normal usage.

You didn't have to switch off Message in Trace in which case you would still see the Trace as before but also the "Messages Only" output window.

Hope that makes sense. It's more to do with not knowing how people want to use it do give them all three options  Smiley 

If you have a lot of messages then each option will take a little more cpu power. A small amount but it can all add up so it's flexible.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint