Pages: [1]   Go Down
Author Topic: Please recommend a low cost debugger and/or emulator  (Read 425 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 158
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,
    I am getting to the point where Serial.println debugging is not cutting it for understanding what is going on my my programs and want a debugger to allow me to step through them.  I am new to using debuggers/emulators and could use some recommendations.  Should I invent in a Dragon?

    I plan on using this for production stuff (eventually).

Thanks in advance
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 220
Posts: 13836
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Although it may sound old fashioned - pen and paper is still a good debugging tool. Writing down what you see, what you expect.
Write down how a variable changes when you read through the code helps a lot.

You can also use one or more free pins and a LED to check paths.
Sometimes for fast signals another Arduino can be a tool of choice (read data from serial or i2C and compare it with what you expect.

What kind of application are you trying to debug?
Can you post the code?
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Full Member
***
Karma: 0
Posts: 158
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Although it may sound old fashioned - pen and paper is still a good debugging tool. Writing down what you see, what you expect.
Write down how a variable changes when you read through the code helps a lot.

You can also use one or more free pins and a LED to check paths.
Sometimes for fast signals another Arduino can be a tool of choice (read data from serial or i2C and compare it with what you expect.

What kind of application are you trying to debug?
Can you post the code?


As I don't want to duplicate posts, I put the code in this thread http://arduino.cc/forum/index.php/topic,144778.0.html

Thanks for your reply.
Logged

Poole, Dorset, UK
Offline Offline
Edison Member
*
Karma: 52
Posts: 2364
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I find (at work in real life) that debuggers/emulators are something that should never be used. And trying to use one with interrupts is just not on.

Mark
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 308
Posts: 26471
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Interrupts are about the only time I'd consider using an in-circuit emulator.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Pages: [1]   Go Up
Jump to: