Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Unable to start debugging. unable to establish a connection to gdb (Read 308 times)
Tiny
Newbies
*
Offline



Posts: 2
Unable to start debugging. unable to establish a connection to gdb
May 20th, 2019 at 10:22pm
 
I just installed VisualMicro today, mainly to use the debugging features. I created a new project and it compiles and uploads to the board perfectly.

However, when I add breakpoints and rebuild, a window appears that says: "unable to start debugging. unable to establish a connection to gdb"

In the debug window, I get the following information:
"\arduino\tools\openocd\0.9.0-arduino6-static\bin/openocd.exe" exited with code 1 (0x1)."

I confirmed that openocd.exe does exist in that directory ,but beyond that I don't know what to do to get the debugger working.

Also what is the difference between gdb debugging and serial debugging? I am mainly looking to get as close to the normal visual studio debugging features, such as monitoring variable values.

I am using a TinyCircuits Tinyscreen+ if that matters.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10310
United Kingdom
Re: Unable to start debugging. unable to establish a connection to gdb
Reply #1 - May 21st, 2019 at 12:42pm
 
You should use serial debugging until we release a simpler gdb config over the coming week or so. Currently it is for advanced use only.

If you created a "Customer debugger" then you have a debugger_launch.json in your project which you should delete.

Does this solve the issue?
Back to top
 
WWW  
IP Logged
 
Tiny
Newbies
*
Offline



Posts: 2
Re: Unable to start debugging. unable to establish a connection to gdb
Reply #2 - May 21st, 2019 at 3:43pm
 
Yes, I just figured out serial debugging. thank you.
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print