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 2019 crashes during serial debugging (Read 1356 times)
Charly Setter
Newbies
*
Offline


Posts: 2
Joined: Jan 4th, 2020
Visual Studio 2019 crashes during serial debugging
Jan 4th, 2020 at 6:14pm
Print Post  
Hello,
i installed the development chain yesterday and am playing around / testing the IDE / serial debugging with a Teensy 4.0.
Current system configuration is:

Microsoft Visual Studio Community 2019
Version 16.4.2
VisualStudio.16.Release/16.4.2+29613.14
Microsoft .NET Framework
Version 4.8.03752

Installierte Version: Community


Arduino IDE for Visual Studio by Visual Micro   19.0
Visual Micro is an Arduino Compatible IDE for Visual Studio 2015-2019. For more information and forum please visit www.visualmicro.com.

...

For testing I´m using the BlinkwithoutDelay project mentioned in the tutorial.
Sketch compilis without errrors, Teensy is running / LED blinking and sends debug data to serial port as intended.

Everytime I´m trying to change a debbugger breakpoint (changing the existing or adding a new breakpoint) the Visual Studio IDE crashes and restarts. Any hints how to avoid this?

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio 2019 crashes during serial debugging
Reply #1 - Jan 4th, 2020 at 6:51pm
Print Post  
Thanks for the info. This sounds like it might be a VS issue but I am unclear if debugging is running or not when you try to add/remove/modify breakpoints?

Close the serial window to be sure the serial debugger is not running. (Although I would not expect that to cause a crash but am asking anyway)
  
Back to top
WWW  
IP Logged
 
Charly Setter
Newbies
*
Offline


Posts: 2
Joined: Jan 4th, 2020
Re: Visual Studio 2019 crashes during serial debugging
Reply #2 - Jan 6th, 2020 at 8:23am
Print Post  
Tim@Visual Micro wrote on Jan 4th, 2020 at 6:51pm:


Close the serial window to be sure the serial debugger is not running. (Although I would not expect that to cause a crash but am asking anyway)


Hi Tim,
I tried both (with debugger running and stopped). Same result (crashes) Sad
I have a older Visual Studio Installation (2013) installed (not running) parallel for Twincat Development (Beckhoff). Can this be part of the problem?

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio 2019 crashes during serial debugging
Reply #3 - Jan 6th, 2020 at 11:07am
Print Post  
No the IDE's are unconnected. It's a vs 2019 bug and I think was also present sometimes in VS2017.

Close the solution then delete the ".vs" folder from below the solution folder. Then re-open the solution.

Does this resolve?
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint