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
Hot Topic (More than 8 Replies) Debugger Not Working After Install (Read 9441 times)
Richard Arndt
Junior Member
**
Offline


Posts: 25
Joined: May 3rd, 2014
Debugger Not Working After Install
May 6th, 2014 at 12:52am
Print Post  
I am using Arduino UNO board.  I have installed VisualMicro on both Atmel Studio 6.2 and Visual Studio 2012, and I am not able to get the debugger mechanism to work on either.  The temporary license says I have 14 days remaining.  I install VisualMicro on Atmel Studio first and found I had a problem with auto detection of a Atmel SAM21 SBC.  This particular issues was fixed after I re-installed the Atmel USB drivers, but VisualMicro was not working.  Then I re-installed (repaired) Visual Micro, but Atmel Studio debugger would not work (could not hit breakpoint).  I then uninstalled/installed Visual Micro again, with no affect. Then I installed Visual Studio 2012 and re-installed Visual Micro.  Results remain, where neither studio would debug/break.  I've tried all the recommendations I could find on this blog and elsewhere with no affect.  What does happen is that "F5" builds the Blink Sketch, uploads and executes (LED blinks).  Please help!  I'd love to try this product out!
« Last Edit: May 6th, 2014 at 12:56am by Richard Arndt »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger Not Working After Install
Reply #1 - May 6th, 2014 at 7:09pm
Print Post  
Hi Richard

Are you seeing debugger trace information when the breakpoint is reached? Is the problem simply that the micro-controller is not stopping/pausing as expected?

Thanks
  
Back to top
IP Logged
 
Richard Arndt
Junior Member
**
Offline


Posts: 25
Joined: May 3rd, 2014
Re: Debugger Not Working After Install
Reply #2 - May 6th, 2014 at 7:50pm
Print Post  
Thank you so much for responding.  I can set breakpoints in main() but they are never reached.  It appears as though the free trial license has expired, but it has not  (VS Trial Status = 10 days").
« Last Edit: May 6th, 2014 at 8:00pm by Richard Arndt »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger Not Working After Install
Reply #3 - May 6th, 2014 at 8:25pm
Print Post  
Hi,


The debugger is working I think this is just some small confusion.

What do you mean by main()? Arduino does not have a main() that you can access. It has setup() and loop().

Thanks
  
Back to top
IP Logged
 
Richard Arndt
Junior Member
**
Offline


Posts: 25
Joined: May 3rd, 2014
Re: Debugger Not Working After Install
Reply #4 - May 6th, 2014 at 9:14pm
Print Post  
I am so use to having a "main()".  I wish I could break within main() of the Arduino Core and step/debug all the way down to bare bones.  OH well Embarrassed that's another subject.

Yes you are right, I can not break within the setup() or loop() of the Sketch.  And for what it is worth, I am using Windows 7 Pro SP1.

Thanks for your help  Smiley
« Last Edit: May 6th, 2014 at 9:18pm by Richard Arndt »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger Not Working After Install
Reply #5 - May 7th, 2014 at 1:38am
Print Post  
Great. We hope to have a switch in the next release that allows you to override the main, use cpp instead of .ino. It's a step towards some more advanced options. We also have a more advanced debugger in the pipeline that will be able to do much more.

Thanks for the update
  
Back to top
IP Logged
 
Richard Arndt
Junior Member
**
Offline


Posts: 25
Joined: May 3rd, 2014
Re: Debugger Not Working After Install
Reply #6 - May 7th, 2014 at 12:30pm
Print Post  
I think you miss read my last post.  I CAN NOT break within the setup() or loop() of the Sketch.  So Visual Micro is not working for me.  Possibly you to can suggest a procedure to re-install stuff that may fix this.  I have tried every thing I can think of.   

FYI I am a course director at a university and am hoping to use Visual Studio as a debugging tool in the class room.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger Not Working After Install
Reply #7 - May 7th, 2014 at 8:55pm
Print Post  
Hi Richard,

Because novices use Arduino for robots and drones we decided to default the debugger to trace mode. 

You can enable "break/pause" in the project properties.

I hope you will find this debugger document from visualmicro.com useful:-

http://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging-Modes.html

If you don't see the links to/about the properties window then here they are:-

http://www.visualmicro.com/page/User-Guide.aspx?doc=Project-Properties-window.ht...
http://www.visualmicro.com/page/User-Guide.aspx?doc=Project-Properties-Reference...

Thanks
  
Back to top
IP Logged
 
Richard Arndt
Junior Member
**
Offline


Posts: 25
Joined: May 3rd, 2014
Re: Debugger Not Working After Install
Reply #8 - May 9th, 2014 at 11:22am
Print Post  
You were right.  The debugger is working...  I just had invalid assumptions on how it works.  I was anticipating the ability to set/clr breakpoints, step through code, and open variables watch window... realtime... which VisualMicro can not do.  I understand it now, that VisualMicro compiles break points and trace logging code into the Sketch to provide these features...  Thank you so much for your help!
« Last Edit: May 9th, 2014 at 11:27am by Richard Arndt »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debugger Not Working After Install
Reply #9 - May 11th, 2014 at 4:08pm
Print Post  
Hi Richard, yes you can only step from breakpoint to breakpoint and can on only break/watch/modify expressions that are declared prior to compilation. However this will be extended slightly in an advanced debugger release hopefully to be released sometime this year.

Thanks for the update
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint