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
Normal Topic Unable to start debugging. Cannot access as disposed object. Object name: 'Debugger'. (Read 7474 times)
RBB01
Junior Member
**
Offline


Posts: 24
Joined: Mar 3rd, 2016
Unable to start debugging. Cannot access as disposed object. Object name: 'Debugger'.
Jul 13th, 2016 at 1:23pm
Print Post  
Created a project as per http://www.visualmicro.com/post/2016/01/03/GDB-for-Arduino-INO-Initial-Beta-Note..., which uploads to Zero OK. F5 gives pop-up "Unable to start debugging. Cannot access as disposed object. Object name: 'Debugger'."

To confirm that a program was uploaded, the Blink program lines were copied into this blank program. F5 generates the same error but the new Blink program is running on the Zero.

Neither openOCD.exe or MicroGdb.exe are present in Task Manager.

Switch optimization off for this file makes no difference: 

#if _VM_DEBUG
#pragma GCC optimize ("O0")
#endif

I am using:

Windows7
Arduino.c 1.6.9
VM 1606.17.10
Microsoft Visual Studio Community 2015 Version 14.0.25421.03 Update 3
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to start debugging. Cannot access as disposed object. Object name: 'Debugger'.
Reply #1 - Jul 13th, 2016 at 7:13pm
Print Post  
Hi,

The Gdb system relied on the Microsoft Gdb Extension which replies on the Android tools for Visual Studio.

So the first question is to understand if you have followed the instructions for the visual studio gdb config?

However I also read recently that Microsoft have updated their gdb extension and it would surprise me if they have changed or reduced the current functionality of their extension.

Sorry to be vague, I need to retest so that's why I am interested to know what you have installed in preparation for gdb?

Also to confirm that you are using a Zero or Ti board?
  
Back to top
IP Logged
 
RBB01
Junior Member
**
Offline


Posts: 24
Joined: Mar 3rd, 2016
Re: Unable to start debugging. Cannot access as disposed object. Object name: 'Debugger'.
Reply #2 - Jul 14th, 2016 at 9:16am
Print Post  
Using Arduino.cc Zero board, which VM successfully uploads programs to.

I followed the instructions at http://www.visualmicro.com/post/2016/01/03/GDB-for-Arduino-INO-Initial-Beta-Note...

Please provide a link to any other instructions; I have already read http://www.visualmicro.com/page/User-Guide.aspx?doc=Arduino-gdb-In-Brief.html, http://www.visualmicro.com/page/User-Guide.aspx?doc=Arduino-gdb-Differences.html and http://www.visualmicro.com/page/User-Guide.aspx?doc=Arduino-gdb-Tutorial.html

Additional information:

The first time I uploaded the project, it may have stopped at one of the default breakpoints and would not step beyond it. I do not recall checking the Zero to see if the new Blink program with a different flashing sequence was executing.

I went to vMicro.Debugging.Automatic Debugging and turned it off, which may have allowed the breakpoints to be ignored, but I am unsure on this. After4 turning on vMicro.Debugging.Automatic Debugging again the error described occurred.

Regards




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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to start debugging. Cannot access as disposed object. Object name: 'Debugger'.
Reply #3 - Jul 14th, 2016 at 9:20am
Print Post  
Best to zip and email your project to info[at]visualmicro.com
  
Back to top
IP Logged
 
RBB01
Junior Member
**
Offline


Posts: 24
Joined: Mar 3rd, 2016
Re: Unable to start debugging. Cannot access as disposed object. Object name: 'Debugger'.
Reply #4 - Jul 14th, 2016 at 11:19am
Print Post  
Sent.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to start debugging. Cannot access as disposed object. Object name: 'Debugger'.
Reply #5 - Jul 16th, 2016 at 4:03pm
Print Post  
Thanks.

I've done some testing and the Microsoft Linux extension doesn't cater for local gdb anymore.

The good news is that it looks like Visual Micro can take over and get the gdb running.

This means that the Microsoft Linux extension can be uninstalled via Control panel is not used for anything else.

The next release of Visual Micro should hopefully be in the next 24/48 hours and should work well without replying on Microsofts code which seems to be "under development at the moment Smiley
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to start debugging. Cannot access as disposed object. Object name: 'Debugger'.
Reply #6 - Jul 22nd, 2016 at 12:39am
Print Post  
Sorry for the delay. There is a new release with the update.

It doesn't require the Microsoft linux extension, still requires the android tools to be installed.

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint