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 Any way to permanently remove 'Expressions Watch Window'? (Read 2426 times)
FrankP
Senior Member
****
Offline


Posts: 251
Joined: Oct 19th, 2011
Any way to permanently remove 'Expressions Watch Window'?
Mar 7th, 2020 at 10:15pm
Print Post  
Every time I start a debug session, I get this 'Expressions on Com XX' window popping up next to the serial output window, and I have to kill it or hide it.  The best I have been able to do is hide it by docking it in the same space as the Output and Error List windows, and then selecting the 'Output' window (which hides the unwanted 'Expressions On Com XX' window).  However, even then the 'Expressions' window pops to the front at some point in the load/debug process and I have to hide it again.

Is there any way to disable this window permanantly?

TIA,

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Any way to permanently remove 'Expressions Watch Window'?
Reply #1 - Mar 7th, 2020 at 10:58pm
Print Post  
If you dock it in its own strip and then click the little down arrow top right of the watch expressions tool window there is option to auto hide. It will then appear on the side bar and always immediately disappear when you click something in the ide. I suggest you dock it as a vertical strip to the left side of the ide. Then it will cover the solution explorer briefly when it opens but won't get in the way so much.

Out of interest is the debugger alone that useful that you never watch any expressions?
« Last Edit: Mar 7th, 2020 at 11:02pm by Tim@Visual Micro »  
Back to top
IP Logged
 
FrankP
Senior Member
****
Offline


Posts: 251
Joined: Oct 19th, 2011
Re: Any way to permanently remove 'Expressions Watch Window'?
Reply #2 - Mar 8th, 2020 at 12:55am
Print Post  
Sure would be nice to have an option to completely disable this window, but maybe the 'in its own strip and select AutoHide' option will work well enough - I'll give it a try.

I haven't found the debugger to be of much use.  By the time I get all the syntax stuff set up to view expression values, etc, I can  do just as well using print statements.  Moreover, the print statements (commented out and surrounded by //DEBUG comments) serve as documentation for the next time I have trouble with the code.  For instance, here's a typical debug printout statement

Code (C++)
Select All
	////DEBUG!!
	//mySerial.printf("GetTotalAmps(): Areading, ITotVolts, ITotAmps = %d, %3.2f, %3.2f\n",
	//	ITotAnalogReading, ITotVolts, ITotAmps);
	////DEBUG!!
 



If for some reason the 'total current' 1NA169 current sensor on my robot is giving me trouble, I can simply uncomment this section to see all the associated variables on the serial monitor, and I don't have to think too much because its all there from the last time.

A few months ago I made a real run at using the debugger. In addition to the above problem of getting all the expression syntax worked out, I found it difficult to follow the expression layout in the output window.  Sometimes I got a table (nice) and sometimes I didn't (not nice!), and couldn't figure out why.

Maybe I'm just too lazy Wink.

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Any way to permanently remove 'Expressions Watch Window'?
Reply #3 - Mar 8th, 2020 at 1:05am
Print Post  
Great I thought you weren't using it. Switch off vMicro>Debugger>Automatic Debugging. Ensure the debugger is then set to Off on the same menu.

+ In the project properties there is a _DEBUG define value you can set per configuration. So switch off the debugger and use that or add your own configuration defines in the same properties location.
« Last Edit: Mar 8th, 2020 at 2:51pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint