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 Suddenly can't set Break Points! (Read 2522 times)
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Suddenly can't set Break Points!
Oct 21st, 2018 at 9:20pm
Print Post  
I always have the debug system enabled in a project.  Now trying fine-tune a control for 4 steppers, and when debug is on, the BP's seriously slow down the motors.   So I ran a few times with Ctrl-F5 - no debug - and NOW I can't set any beak points!  I MAY have upset some settings in prefs - as a line with a breakpoint in it was showing up yellow...  wonder if I somehow got Visual Studio 2015's breakpoint system involved...    Shocked   real PITA and very confusing!
  
Back to top
 
IP Logged
 
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: Suddenly can't set Break Points! - part 2
Reply #1 - Oct 22nd, 2018 at 12:37pm
Print Post  
Now it seems VS2015 is acting up - constantly hanging when I attempt to do a build with debug.  Is there any way I could remove VM and reload it?  Something has gotten seriously hosed up and now dead in the water.  Wondering if I should uninstall/reinstall VS2015?
No happiness in Mudville this morning   Cry
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Suddenly can't set Break Points!
Reply #2 - Oct 22nd, 2018 at 12:38pm
Print Post  
Make sure the tool bar says Debug and not Release

See if the build output says "building debug version of project"

Make sure vMicro>debugger>automatic debugging is enabled

  
Back to top
IP Logged
 
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: Suddenly can't set Break Points!
Reply #3 - Oct 22nd, 2018 at 1:39pm
Print Post  
Yes Tim - all those settings are correct.  Have been using this setup for months - suddenly VS is hanging every time I try an upload - debug or or not... have to 'end task' and restart VS constantly....   this is really scary and have no idea what may have happened.

Should I uninstall VS and reinstall?   Have to run now be back later - thanks!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Suddenly can't set Break Points!
Reply #4 - Oct 22nd, 2018 at 1:44pm
Print Post  
I doubt it is related to vs or visual micro.

I suggest you try with the tool bar set to Release for a few days to see if you have an intermittent upload problem.

After ensuring you have a solid upload you could then re-visit the debugger to see if that now works okay.

Both upload and debug use usb so the changes are you either have a problem with usb cable or usb driver.

In Release mode if upload is always stable then test if serial is always stable. Send serial messages from your code to see if they are clean and correct on the pc.


« Last Edit: Oct 22nd, 2018 at 1:46pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: Suddenly can't set Break Points!
Reply #5 - Oct 23rd, 2018 at 1:38am
Print Post  
Thanks Tim - I have checked all those issues and none appear to be involved.  Yesterday (10-21) I was uploading ok (both debut/release) but suddenly I couldn't set breakpoints any more - and I noticed several lines were yellow & red,  and when I did a right-click on them a different look debug message came up.  I'm wondering if I've managed to mess up some settings in VS that would disable VM.  This morning I was getting fairly regular freeze/hangs of VS as soon as I attempted an upload.

Please note - I do NOT think this has anything to do with visual micro. Smiley

Currently anything I try to upload will hang - will have to investigate if anything is up with the USB ports.  Fingers crossed - I'm SOO close to the end of this "project from hell" - really hoping to wrap this up.


Tim@Visual Micro wrote on Oct 22nd, 2018 at 1:44pm:
I doubt it is related to vs or visual micro.

I suggest you try with the tool bar set to Release for a few days to see if you have an intermittent upload problem.

After ensuring you have a solid upload you could then re-visit the debugger to see if that now works okay.

Both upload and debug use usb so the changes are you either have a problem with usb cable or usb driver.

In Release mode if upload is always stable then test if serial is always stable. Send serial messages from your code to see if they are clean and correct on the pc.



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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Suddenly can't set Break Points!
Reply #6 - Oct 23rd, 2018 at 6:04pm
Print Post  
You should switch on verbose to see exactly what is running during a freeze and post an image of the red and yellow issue.
  
Back to top
IP Logged
 
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: Suddenly can't set Break Points!
Reply #7 - Oct 23rd, 2018 at 11:25pm
Print Post  
Verbose was on.  I was thinking VS got setting messed up, so installed a version of Atmel Studio 7.   And IT TOO kept hanging when I did an up load.  So next I gave the good old Arduino IDE a shot at it - and on verification I got rather strange error messages like "Stray '\257'

So after further heavy searching I discovered that that means here is a garbage character in the script text!  After much trial and error I manged to find I suspect line, delete it and re-enter it.  AH - now the Arduino verify worked!


What a freekin' bizarre error to get! Only cost me about 3 days or so...  Sad   So now my tools  are working again and I can return to my other craziness - the remaining bugs!    Sigh...
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint