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 31581 times)
xmen
Junior Member
**
Offline


Posts: 50
Joined: Aug 22nd, 2016
GDB debugging is disabled in VS 2012
Dec 8th, 2016 at 1:12pm
Print Post  
I use VS 2012 and now I want to do some debugging on stm32f103c8t6 board. But the children menu of Debugger, all are disabled. I also placed a boards.txt file in project folder containing following text.

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" 


But Im not sure if I have android tools for VS installed, I checked in control panel and there is nothing to install further.
  

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 #1 - Dec 8th, 2016 at 2:23pm
Print Post  
Hi,

Well done for finding the board.txt commands because they are new and need better documentation

The problem is that Visual Micro replies on the Microsoft MI debugger which I know is installed with the Android tools for  VS2015. Haven't had a chance yet to see if there are options for older VS versions.

Visual Micro tests to see if the android tools are installed before enabling gdb.

If you find an alternative way to install the mi debugger in vs 2012 it will be an easy job to check for it so do let me know and I will repeat the steps and produce a new release.

Otherwise please install VS2015 with C++ and Android tools. VS2015 happily runs side-by-side with vs2012 so will not damage your 2012 install

Some crude instructions here:-

http://www.visualmicro.com/post/2016/01/03/GDB-for-Arduino-INO-Initial-Beta-Note...
« Last Edit: Dec 8th, 2016 at 2:36pm 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 #2 - Jan 16th, 2017 at 9:03am
Print Post  
okay I tried this month ago, I tried this yesterday and today but VS 2015 cant seem to install Visual C++ Android Development. It says install succeed but when I open the VS modify dialog, there it is again available to install(Image). 

I already have android SDK installed, but VS keep insisting on installing Android SDK Setup (API 19 and 21), but if I enable it, install fails as 'addon-google_apis_x86-google-19' no longer exists on google server, but I tried many tricks and got 'addon-google_apis_x86-google-19' installed but then setup fails with following error.

Quote:
Android SDK Setup (API Level 19 and 21) : The following package(s) were not downloaded: extra-android-support . Please check your internet connection and try again.


So I unchecked this option and install finishes successfully but still Visual C++ Android Development doesn't get installed.
  

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 #3 - Jan 16th, 2017 at 2:28pm
Print Post  
Hi,

Best place to ask is the microsoft connect web site. They will probably confirm which update of Visual Studio you are using and gather other information.
  
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 #4 - Jan 16th, 2017 at 2:32pm
Print Post  
Is there any standalone setup for this ?

Also I have read some people having similar problem and no good reply from microsoft.
« Last Edit: Jan 16th, 2017 at 2:34pm 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 #5 - Jan 16th, 2017 at 2:37pm
Print Post  
Please provide visual studio version and update number details from the help>about

Try control panel>add or remove programs>visual studio c++ android tools>repair

I can't see what else you have selected in the vs options list. It might be related



« Last Edit: Jan 16th, 2017 at 2:37pm 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 #6 - Jan 16th, 2017 at 2:48pm
Print Post  
I have Visual C++ for Mobile Development (Android support) inside Programs, does that mean I have "Visual C++ Android Development" Installed ?

Okay I created a new project, closed it, added boards.txt and reopen the project. Now there is no Debugger menu inside vMicro menu.

Edit : Fixed the sentence
« Last Edit: Jan 16th, 2017 at 2:52pm 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 #7 - Jan 16th, 2017 at 2:55pm
Print Post  
The VS C++ Mobile with Android is all you should need.

A missing entire debug menu is not related to android.

Can you please open a project, make sure the solution explorer is visible, select the project in the solution explorer, pull down the vMicro menu and take a screen shot.

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 #8 - Jan 16th, 2017 at 2:58pm
Print Post  
It disappeared after I added boards.txt, before it was appearing but its submenus were disabled.
  

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 #9 - Jan 16th, 2017 at 3:02pm
Print Post  
This is a different problem.

Visual Micro will go to sleep if the project name, folder name and a .ino do not match.

You don't have any code edit options or build options, not just debug Smiley

Right click the project and rename the "Sketch" to "vvv"

What did you click to create the project?
« Last Edit: Jan 16th, 2017 at 3:02pm 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 #10 - Jan 16th, 2017 at 3:07pm
Print Post  
Renamed still same problem.
I created through File > New > Arduino Project.

I created new project, added boards.txt, reopen project twice. Debugger menu is appearing but all disabled.
  

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 #11 - Jan 16th, 2017 at 3:22pm
Print Post  
Great, that's working correctly now.

The debug menu is disabled if you are using the free version.

Did you purchase in the past?

Or maybe you have switched on "Pause Pro Features" in tools>options>visual micro?
« Last Edit: Jan 16th, 2017 at 3:24pm 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 #12 - Jan 16th, 2017 at 3:53pm
Print Post  
I'm kind of confuse, I did ask you about it. And you said I can use GDB debugging, it will only show nag screen.

http://www.visualmicro.com/forums/YaBB.pl?num=1472281000/12#12

  
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 #13 - Jan 16th, 2017 at 6:06pm
Print Post  
Oh I see. The problem is the board.txt is part of pro so its ignored. You would have to experiment with platform.txt from the hardware folder then your gdb menu will appear. in the latest version "vMicro>General>rescan tooslchains and libraries" will detected your platform.txt changes without need to restart the ide.

The gdb is still in free but I should warn you that it will probably move to paid shortly. When I started the project 6 or 7 years ago I was under the false belief that making good software would see people either leave good review on the internet or if they can affort 25 euros they would buy the software. 

Sadly the world doesn't appear to work this way. Furthermore both Microsoft and Arduino change so fast it's becoming full time work to keep things going. Then we have users who want help with standard Ide functions and Arduino code it's becoming more and more difficult to justify the free software.

I hope this makes sense to you.
  
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 #14 - Jan 17th, 2017 at 8:12am
Print Post  
I understand, I had quite similar experience in past years. And I will soon purchase pro version when I will be coding. 

Thank you. Smiley
  
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 #15 - Jan 17th, 2017 at 8:31am
Print Post  
There is an update in the gallery 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 #16 - Jan 17th, 2017 at 9:05am
Print Post  
Whats new ?
  
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 #17 - Jan 17th, 2017 at 12:43pm
Print Post  
Just the fix that removes the debug prompt.

Is your gdb working now?
  
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 #18 - Jan 17th, 2017 at 1:44pm
Print Post  
Haven't bought the pro version yet.
  
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 #19 - Jan 17th, 2017 at 4:15pm
Print Post  
You don't need it do you. You have changed the platform.txt and have the gdb menu. the gdb was attempting to launch for you yesterday but showed a confusing debug message.

So if you have updated today gdb should start without the message.

You only needed the paid version for the board.txt.

If you can test that it works and then provide the platform.txt changes along with a note of what hardware you installed from board manager or git then I can get you a free license.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 3 
Send TopicPrint