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 Visual studio no watch windows shown (Read 1620 times)
Dave Morris
Newbies
*
Offline


Posts: 5
Joined: Sep 6th, 2023
Visual studio no watch windows shown
Oct 22nd, 2023 at 2:56pm
Print Post  
Hi - Just purchased copy or Visual Micro and using it for developing code on the Arduino Zero. 
Started with the good old Blink example. However, if I setup a break-point it will stop at the break-point but NOT show the watch windows (local etc) and they don't appear in Debug>Windows menu.
Obviously, I am doing something silly. Can someone point me in the right direction.
(I have used Visual Studio on many other .net projects in the passed)
Kind regards
Dave
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2767
Joined: Feb 13th, 2019
Re: Visual studio no watch windows shown
Reply #1 - Oct 23rd, 2023 at 8:55am
Print Post  
Thanks for the report, can you attach the logging information shown at the top of the page so we can understand your setup more accurately?
  
Back to top
IP Logged
 
Dave Morris
Newbies
*
Offline


Posts: 5
Joined: Sep 6th, 2023
Re: Visual studio no watch windows shown
Reply #2 - Oct 23rd, 2023 at 11:28am
Print Post  
Hi, Simon
Thanks for the quick response - I have attached the log from the output window (output shown from Micro Build) - hope its the correct one.
Also I noticed that if I compile with a breakpoint selected it works (halting at the breakpoint). However, when running I add another breakpoint it only halts previous point (i.e. added breakpoints have not effect).
I can do a screen shot or recording if that will help - There must be something I am doing wrong!
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2767
Joined: Feb 13th, 2019
Re: Visual studio no watch windows shown
Reply #3 - Oct 23rd, 2023 at 11:47am
Print Post  
Thanks for the logs, they show you are using the Serial Debugging feature in Visual Micro.

The debugger works slightly differently to the native debugging in Visual Studio.  It will open its' own "Expressions" window (not the one from the VS Debug Menu) when the debugging session is started.  You can add any variables you want to watch to your break/trace points as shown in the below guide, which will then be shown and updated in the Expressions window once the Serial Monitor opens after upload.
https://www.visualmicro.com/page/User-Guide.aspx?doc=Working-With-Breakpoints-Wh...

Break/Trace points need to be added to the sketch and configured before the code is uploaded, as they are injected into the code that is put on the board.

The Serial Debugger has a wide range of features over and above the Hardware Debugging capabilities, such as custom @Plot Charts, Performance Monitoring, complex conditional break/trace points etc...

The Zero does also support Hardware Debugging, which is essentially the same as the Native Debugging experience in Visual Studio which allows breaks to be set at runtime, and the standard locals/autos windows to be used, but lacks the custom features of the Serial Debugger.

For this you need to select "Debug: Hardware", and then the "Debugger: Built-In (EDBG)" options, but no additional hardware should be needed for your board:
https://www.visualmicro.com/page/SAMD-Debugging.aspx

  
Back to top
IP Logged
 
Dave Morris
Newbies
*
Offline


Posts: 5
Joined: Sep 6th, 2023
Re: Visual studio no watch windows shown
Reply #4 - Oct 23rd, 2023 at 3:30pm
Print Post  
Hi, Simon
Thanks for your help - it now works great.

I did look at your site, it appears to have lots of useful info, but I  looked for Arduino Zero and missed the "How to debug an SAMD with an Arduino project and GDB?" topic. 

I am new to Arduino and Atmel chips, so perhaps if I use "SAMD" and "GDB" for searching in future I may get some useful results.

Once again thanks for your promote help)

P.s. How do you mark the post as Solution found to help other users?
Dave  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint