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) Breakpoint Marker (Read 8279 times)
uChip
Junior Member
**
Offline


Posts: 22
Location: Washington, USA
Joined: Apr 22nd, 2013
Breakpoint Marker
Apr 26th, 2013 at 3:06am
Print Post  
In VSDB when a breakpoint is hit the edit window jumps to that line of code and the breakpoint symbol on the left is overlaid with an arrow indicating that the code is stopped at that point.

Can this not be done from the VMDB plug-in?  I know that the line number is given in the Output window but the marker would be nice. (another cosmetic request  Smiley )
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoint Marker
Reply #1 - Apr 26th, 2013 at 10:09am
Print Post  
Yes I would like that but can't find how to do it, hence the code line is highlighted instead
  
Back to top
IP Logged
 
uChip
Junior Member
**
Offline


Posts: 22
Location: Washington, USA
Joined: Apr 22nd, 2013
Re: Breakpoint Marker
Reply #2 - Apr 27th, 2013 at 6:45pm
Print Post  
Have you asked on MSDN?  They are not nearly  as responsive as you are here, but if there is a way, someone will probably point it out.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoint Marker
Reply #3 - Apr 27th, 2013 at 6:51pm
Print Post  
Good idea. I don't think i did. I can never work out where to ask questions on msdn, usually ask in the wrong place and get frustrated. Do you have a link please? I know it sounds silly but I'm a million miles an hour at the moment. Would like to ask the question but haven't got time to wade through any confusion. Appreciated it you know.
  
Back to top
IP Logged
 
uChip
Junior Member
**
Offline


Posts: 22
Location: Washington, USA
Joined: Apr 22nd, 2013
Re: Breakpoint Marker
Reply #4 - Apr 27th, 2013 at 6:55pm
Print Post  
I do not know it off the top of my head, but I will poke around and let you know what I find.
  
Back to top
 
IP Logged
 
uChip
Junior Member
**
Offline


Posts: 22
Location: Washington, USA
Joined: Apr 22nd, 2013
Re: Breakpoint Marker
Reply #5 - Apr 27th, 2013 at 7:29pm
Print Post  
I went to msdn.microsoft.com and clicked on Forums.  From there I did a search on "writing debugger extensions" had a number of hits which lead me to this article, Creating a Custom Debug Engine.

http://msdn.microsoft.com/en-us/library/bb145934(v=vs.110).aspx

Next I did a search on "custom breakpoint marker" and turned up this thread.

http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/875134be-33be-4cbb-...

and this

http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/4859c58c-0773-4c91-98ff...

Seems like there are many relevant threads from that search.  You can backtrack from one of the threads to the top of the sub-forum, or use the Ask a question controls at the top of each thread.

BTW, as responsive as you are in your own forums I'm not surprised your going a million miles an hour.  I don't see when you would have time to code!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoint Marker
Reply #6 - Apr 27th, 2013 at 8:09pm
Print Post  
Thanks for the links they will be useful at some stage, it all came flooding back when I read them. To implement the marker I need to write a simulated debugger for the system so that I can implement the IDebugStackFrame2 interface. 

According to the links I need to do some stuff like this before the interface can be used

Quote:
1.  The OnModuleLoad event sent to the SDM.
2.  The OnLoadComplete event sent to the SDM.
3.  The OnBreakpoint event sent to the SDM


The interface is only available as follows:-

Quote:
This interface is obtained only when the program being debugged has been stopped at a breakpoint (either caused by a user-set breakpoint or an exception). From this interface, an expression context can be obtained to evaluate expressions, a list of registers can be returned, or the call stack can be obtained and examined.


So know I know why I gave up  Smiley I think I found a few open source debugger examples but it was going to be a time consuming task to wade through and hook everything back to the arduino project (let alone understand how it all works). Since then the vm debugger has matured which might make the task easier. This post has been a good reminder thanks and will be useful when I or ano (hint everyone) take a look at it.

Thanks for the note about the responses, sometimes it slows things down but at others it reminds me what is important. You can see why the web site and documentation is poor. 

I need to do a doc that's next on my list  Angry
  
Back to top
IP Logged
 
uChip
Junior Member
**
Offline


Posts: 22
Location: Washington, USA
Joined: Apr 22nd, 2013
Re: Breakpoint Marker
Reply #7 - Apr 27th, 2013 at 8:15pm
Print Post  
No worries.  What you are doing is valuable and you are doing it well. 
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoint Marker
Reply #8 - Apr 27th, 2013 at 10:06pm
Print Post  
Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint