Debugging methode

Libraries, utilities, bootloaders...

Debugging methode

Postby clement » Sat Oct 25, 2014 8:33 am

Hello,

I'am a c# dev and i work in my office with Visual studio.
I can toggle break point, and espion variable.

For gamebuino i create the software with sublime text 2 and compile with the arduino EDI and test it with simbuino.

But i cant toggle break point.

What is your method for debugging your software?

Thank for your help !

PS : sorry for the bad english.
clement
 
Posts: 161
Joined: Sat Oct 25, 2014 8:06 am

Re: Debugging methode

Postby rodot » Sat Oct 25, 2014 11:46 am

The Arduino IDE doesn't support breakpoints and other debugging methods, all you can do is to write on screen using gb.display.print, or send data through USB using Serial.println() (not supported by Simbuino).
I think that Simbuino allows debugging, but at low level (Myndale will tell you more).
If you want proper debugging on AVR microcontrollers, you'll have to use AVR Studio along with a JTAG (I never did so I can't tell more).

PS: don't worry about your English, most people are not native English here ;)
User avatar
rodot
Site Admin
 
Posts: 1290
Joined: Mon Nov 19, 2012 11:54 pm
Location: France

Re: Debugging methode

Postby Myndale » Sat Oct 25, 2014 10:28 pm

rodot wrote:send data through USB using Serial.println() (not supported by Simbuino).


Actually Simbuino does support serial output, it's in the panel at the bottom. It's very basic at the moment but it's enough for debugging.

As Rodot points out Simbuino does do assembly level debugging with breakpoints etc, if you get really stuck then you can generate a LST file from the ELF which will show you which assembly instructions map to which lines in your source code. I do intend to one day add proper source line debugging but I have other Gamebuino projects on the boil at the moment so realistically I won't start working on it until next year.
Myndale
 
Posts: 507
Joined: Sat Mar 01, 2014 1:25 am


Return to Software Development

Who is online

Users browsing this forum: No registered users and 33 guests

cron