DEBUGGING

Hi all
How exactly debugging an arduino based project is done ?

Emulation , simulation ICE ?

What software tools are offered or available for this purpose .
I ask this because compilers like KEIL offer built in debugging tools .

Thanks

EC

How exactly debugging an arduino based project is done ?

Using the search button up there, in the upper right corner of EVERY screen.

How exactly debugging an arduino based project is done ?

With plenty of meaningful debugging messages to the serial port.

"With plenty of meaningful debugging messages to the serial port"

Yes this is in design time , but what about run time .

How I debug the whole project that is ARDUINO board and the external hardware added to it , in run time ?

EC

Yes this is in design time , but what about run time .

Wrong!

Yes this is in design time ,

How can you have a debug message at design time?

How can you have a debug message at design time?

The compiler is always pointing out de bugs in my programs. 8)

There is bugger all debugging support on the Arduino, things like toggling pins, flashing LEDs, etc work pretty well and of course there's the UART/I2C/SPI ports if they not being used for anything else.


Rob

How can see registers value in response to some external switch closed at run time ?

EC

How can see registers value in response to some external switch closed at run time ?

This is C/C++ - we're not concerned with registers, only variables.

@elico - Looking at this, and your other threads, I really don't think an Arduino is the thing for you.

There are no interactive debugging tools in the IDE, so forget breakpoints, inspecting variables etc. You will need to add debugging code to tell you what is going on. There was a discussion on it in this thread: http://arduino.cc/forum/index.php/topic,90660.0.html although it did get a bit "four yorkshiremen" towards the end.

Where exactly the serial.print() sends its data serialized out , where can I see that data at run time ?

Thanks
ec

Out the virtual serial port, via the usb cable. You see it in the Serial monitor, or Hyperterm, or some other terminal application.

Where exactly the serial.print() sends its data serialized out

To the Tx pin

where can I see that data at run time

In the serial monitor, or in a terminal emulator window

"In the serial monitor, or in a terminal emulator window"

What is that "serial monitor" , give me an example of terminal emulator window .

Thanks
elico

The Arduino IDE includes a utility called the Serial Monitor.

Hyperterm is an example of a terminal emulator.

The Serial Monitor is launched by clicking the button on the top-right corner of the IDE. In 1.0, it looks like a little magnifying glass over a line of dots. I think it was different in earlier versions.