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 [2] 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) GDB debugging is disabled in VS 2012 (Read 31610 times)
xmen
Junior Member
**
Offline


Posts: 50
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #20 - Jan 18th, 2017 at 1:49pm
Print Post  
No I haven't touched platform.txt and what confusing message did it show?

I did update the visual micro, and menus are still disabled.

I believe we have some communication misunderstanding. Embarrassed
« Last Edit: Jan 18th, 2017 at 1:52pm by xmen »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #21 - Jan 18th, 2017 at 2:08pm
Print Post  
Sorry I was confused with two gdb threads in the forum.

What have you put in your board.txt?
  
Back to top
WWW  
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 50
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #22 - Jan 18th, 2017 at 6:52pm
Print Post  
I will see about that after I buy pro.

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #23 - Jan 18th, 2017 at 8:30pm
Print Post  
Don't buy pro just for this I can send you a trial key.

The gdb is released for vs2015 and above because it's tested with that I don't know if the android tools in vs2012 use the Microsoft MI debugger. It's the debugger that the android tools install that we use.

Email me at info[at]visualmicro.com and I will send you a key.

You also need to be prepared to work out a few settings. gdb is currently only standard for the arduino zero and to launchpad. Support for other boards can be added when users confirm the correct settings.
« Last Edit: Jan 18th, 2017 at 8:31pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 50
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #24 - Jan 19th, 2017 at 9:34am
Print Post  
Done.
  
Back to top
 
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 50
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #25 - Jan 25th, 2017 at 3:29pm
Print Post  
Okay I tried today with the key you sent me, the debugger submenus got enabled. But when I tried to debug I got this error.

Quote:
Opening port
Debug off
Port failed to open
To try connecting again untick and then tick the 'Connect' button or switch on communications 'Auto Reconnect' in the options
Opening port
Debug off
Port failed to open


You are using Serial to debug ? I needed to debug through ST LINK V2, which do not have serial.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #26 - Jan 25th, 2017 at 3:52pm
Print Post  
what have you added to board.txt or platform.txt
  
Back to top
WWW  
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 50
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #27 - Jan 25th, 2017 at 3:55pm
Print Post  
Quote:
build.openocdscript=board/stm32f103c8t6mini.cfg
debug.tool=gdb
tools.gdb.pre_init.tool=openocd
tools.gdb.cmd=arm­none­eabi­gdb.exe
tools.gdb.path={runtime.tools.arm­none­eabi­gcc.path}/bin
tools.gdb.pattern="{path}/{cmd}" ­interpreter=mi ­d "{build.project_path}"
tools.gdb.openocd.cmd=bin/openocd.exe
tools.gdb.tcp=localhost:3333
9.0
tools.gdb.openocd.params.verbose=­d2
tools.gdb.openocd.params.quiet=­d0
tools.gdb.openocd.pattern="{path}/{cmd}" -f "{path}\scripts\interface\stlink-v2.cfg" -c "transport select hla_swd" ­s "{path}/scripts/" ­f "{path}/scripts/{build.openocdscript}" -c "tpiu config external uart off 24000000 12000000"
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #28 - Jan 25th, 2017 at 4:03pm
Print Post  
Great, do you now see a menu item vMicro>debugger>visual studio debugging?

It needs to be ticked

« Last Edit: Jan 25th, 2017 at 4:06pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 50
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #29 - Jan 26th, 2017 at 7:22am
Print Post  
Automatic Debugging is ticked.
« Last Edit: Jan 26th, 2017 at 7:23am by xmen »  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #30 - Jan 26th, 2017 at 3:48pm
Print Post  
Hi,

Two things are required for the gdb debug

1) debug.tool=gdb
2) Android tools with Microsoft MI debugger

As you know the gdb was released and tested for vs2015 and above. You have been able to install android into vs2012 but I don't know if it has the mi debugger.

Visual Micro looks for points 1) and 2), if they exist then the menu item is displayed

I suggest you switch on "vMicro>Compiler>Show build properties" then build and see if debug.tool=gdb is displayed in the outputed properties. This will show that you have configured point 1) correctly.
  
Back to top
WWW  
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 50
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #31 - Jan 27th, 2017 at 3:09am
Print Post  
Your site wont allow me to post the entire build properties as its more than 8000 chars. But the build properties do have debug.tool=gdb



« Last Edit: Jan 27th, 2017 at 12:48pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #32 - Jan 27th, 2017 at 12:48pm
Print Post  
Please save the output to a .txt file and attach
  
Back to top
WWW  
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 50
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #33 - Jan 27th, 2017 at 3:52pm
Print Post  
I did posted some part of it, but seems like removed ?

Here is attachment of build log, VS 2015
« Last Edit: Jan 27th, 2017 at 3:54pm by xmen »  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #34 - Jan 27th, 2017 at 5:20pm
Print Post  
Thanks for the output which looks okay so the problem suggests that the cross-platform android tools for vs are not installed.
« Last Edit: Jan 27th, 2017 at 5:20pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 50
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #35 - Jan 28th, 2017 at 4:17am
Print Post  
I tried to install it like 20 times, its always same as I said in #2 post.

http://www.visualmicro.com/forums/YaBB.pl?num=1481202758/2#2
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #36 - Jan 28th, 2017 at 1:07pm
Print Post  
Hmmm, we have a couple of other threads were people are working okay with this so I will have to try your platform settings.

Can you please tell me what you have installed for your board (which board etc to download)

I will see if your settings then work.

Thanks
  
Back to top
WWW  
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 50
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #37 - Jan 28th, 2017 at 1:29pm
Print Post  
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: GDB debugging is disabled in VS 2012
Reply #38 - Jan 28th, 2017 at 7:47pm
Print Post  
Thanks. That all checks out. I and other users have the same.

I tried your defs and the menu item shows for me. I even knocked out my pro license and it's still there.

I assume with a new empty project you have the same issue?

As I said there are only two checks. 1) for the debug.tool=gdb + props and 2) if android tools have installed the Microsoft MI debugger for us.

You have shown the tools are installed so I am not sure why you cant see the menu

Does your file>new>project window show the cross platform templates as in the attached picture?

  

Please Register or Login to the Forum to see File Attachments
Back to top
WWW  
IP Logged
 
xmen
Junior Member
**
Offline


Posts: 50
Joined: Aug 22nd, 2016
Re: GDB debugging is disabled in VS 2012
Reply #39 - Jan 29th, 2017 at 3:03am
Print Post  
VS 2015
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 
Send TopicPrint