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) VS 2017 Debugging will not initialize (Read 5607 times)
loouq-VMuser
Newbies
*
Offline


Posts: 5
Joined: May 28th, 2018
VS 2017 Debugging will not initialize
May 28th, 2018 at 8:26pm
Print Post  
Hello,
    We have been using VM for about 2 years now and were only able to use the GDB debugger on VS 2015. However, due to the support being dropped from 2015, we feel pressured to get the VS 2017 debugger working for an Arduino Zero. The problem is that the debugger initialization sequence always hangs. The most common point of hang seems to be when the debugger is attempting to load symbols from one of the *.elf files. Build succeeds, everything is up to date, and we are able to upload/run the project without debugging. So I am curious as to how we can fix this issue with the debugger or symbols loading. Thank you
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2017 Debugging will not initialize
Reply #1 - May 28th, 2018 at 9:29pm
Print Post  
Hi,

Which version of visual micro do you have installed in vs2015?
Which version of Arduino ide?
You can find a gdb logs folder below the project\debug or project\release folder.

Please zip and email both logs folders from vs2017 and vs2015 to info[at]visualmicro.com

Thanks
« Last Edit: May 28th, 2018 at 9:30pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
loouq-VMuser
Newbies
*
Offline


Posts: 5
Joined: May 28th, 2018
Re: VS 2017 Debugging will not initialize
Reply #2 - May 28th, 2018 at 11:10pm
Print Post  
Just uploaded log files to info[at]visualmicro.com.
In VS 2017:
    - VM Arduino IDE version: 1805.25.0
    - VM GDB 2017: 15.170821.1

I do have the Android C++ tools.
In VS 2015:
    - VM Arduino IDE version: 1805.25.0
    - VM GDB 2015: 14.170501.1

The problem in VS2015: Debugger starts, however we cannot insert break points before or during debugging, no matter how many times we build.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2017 Debugging will not initialize
Reply #3 - May 29th, 2018 at 10:15am
Print Post  
1)
Do the logs you sent include the working logs for vs2015?

2)

The gdb debugger certainly needs the android tools

The gdb is outside of visual micro and beta because it relies on tools such as android which are difficult to support.

Over the coming months visual micro will discontinue support for vs2012 and 2013. This will then allow is to include gdb directly in visual micro. Unfortunately Microsoft have changed their api format so we can't combine into one as things stand.

Let's see what happens if you install android for vs2017

« Last Edit: May 29th, 2018 at 10:19am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
loouq-VMuser
Newbies
*
Offline


Posts: 5
Joined: May 28th, 2018
Re: VS 2017 Debugging will not initialize
Reply #4 - May 29th, 2018 at 12:53pm
Print Post  
That makes sense, and we would prefer to use VS 2017 since the only reason we keep VS2015 around is for arduino zero debugging. As for the Android C++ tools I will reiterate myself above in that we do have them installed. We uninstalled and reinstalled VM and the tools in all possible orders. 

As for the logs, if 2017 and 2015 use the same folder, then yes it probably includes both. I can delete the log directory and just debug in 2017 for more specific logs if needed.
  
Back to top
 
IP Logged
 
loouq-VMuser
Newbies
*
Offline


Posts: 5
Joined: May 28th, 2018
Re: VS 2017 Debugging will not initialize
Reply #5 - May 29th, 2018 at 1:19pm
Print Post  
So the logs were all created by VS 2015. I deleted the Debug/ directory and started a debug session by VS 2017 only. It recreated the Debug/ directory, however there wasn't a lower logs/ directory or VM_DBG/ directory. The debugger hung, then timed out. The task manager shows MicroDebug.exe running. Not sure what is causing it to hang.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS 2017 Debugging will not initialize
Reply #6 - May 29th, 2018 at 10:21pm
Print Post  
We will do some tests over the next 10-14 days. Thanks for the info.

  
Back to top
WWW  
IP Logged
 
loouq-VMuser
Newbies
*
Offline


Posts: 5
Joined: May 28th, 2018
Re: VS 2017 Debugging will not initialize
Reply #7 - May 31st, 2018 at 3:47pm
Print Post  
I was able to create a new blink project in a fresh install of visual studio 2017 with all required tools. I'll send info[at]visualmicro.com the logs from this project which were only created by VS2017. Hopefully that will be of more help. Thanks
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2170
Joined: Feb 13th, 2019
Re: VS 2017 Debugging will not initialize
Reply #8 - Aug 21st, 2019 at 10:48am
Print Post  
vMicro now supports a range of additional hardware debuggers out of the box:

Debugger List: https://www.visualmicro.com/page/DebuggerSupportList.aspx
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint