Click here to Skip to main content
15,920,708 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
QuestionClonezilla Pin
Kornfeld Eliyahu Peter6-Mar-16 4:41
professionalKornfeld Eliyahu Peter6-Mar-16 4:41 
JokeRe: Clonezilla Pin
Sascha Lefèvre6-Mar-16 4:42
professionalSascha Lefèvre6-Mar-16 4:42 
GeneralRe: Clonezilla Pin
OriginalGriff6-Mar-16 4:58
mveOriginalGriff6-Mar-16 4:58 
GeneralRe: Clonezilla Pin
Kenneth Haugland6-Mar-16 6:45
mvaKenneth Haugland6-Mar-16 6:45 
AnswerRe: Clonezilla Pin
Jacquers6-Mar-16 5:17
Jacquers6-Mar-16 5:17 
GeneralRe: Clonezilla Pin
OriginalGriff6-Mar-16 5:20
mveOriginalGriff6-Mar-16 5:20 
GeneralDebugging... Pin
Kornfeld Eliyahu Peter5-Mar-16 20:18
professionalKornfeld Eliyahu Peter5-Mar-16 20:18 
GeneralRe: Debugging... PinPopular
Marc Clifton6-Mar-16 3:18
mvaMarc Clifton6-Mar-16 3:18 
Kornfeld Eliyahu Peter wrote:
What are your methods?


Well, I take several approaches, often multiple ones:
  1. Determine test fixture -- what do I need to set up to actually debug / test? How do I isolate the test fixture? How can it be automated so I'm not clicking through the UI?
  2. Write the test first. I actually do this very rarely because I find it hard to express the test results ahead of time. It's only when I write the actual code that I think, ok, this needs to be tested, that needs to be tested. Also, when dealing with new technologies, I often don't know what the format of the data is until I get the hardware or API working -- what does the card scanner actually give me, what does the JSON actually look like?
  3. Step through the code. I do this almost all the time to make sure that I'm understanding correctly the tech with which I'm interfacing.
  4. Write the test after writing the code. For certain things, I definitely do this. Once the baseline code is working, I can then throw different scenarios at it. Useful scenarios that represent anticipated use cases, not just mindless contract testing or the like.
  5. Debug the tests.
  6. Try out the code via the UI. Funny thing is, that often reveals things I didn't consider.
  7. Put the app in front of someone else. Not so funny is seeing how other people go about using the app, and the bugs that are revealed in that process. Not just algorithmic bugs, but also UX bugs -- if the user experience sucks, I consider that a bug.
  8. Put the app in front of select customers. Very revealing and is the best way to discover that the spec itself is buggy.
So debugging is not just about code. It's about the user experience, whether the spec accurately captured the user's needs, and understanding how stuff is used in the wild.

Marc

JokeRe: Debugging... Pin
Kornfeld Eliyahu Peter6-Mar-16 3:40
professionalKornfeld Eliyahu Peter6-Mar-16 3:40 
GeneralRe: Debugging... Pin
Marc Clifton6-Mar-16 4:54
mvaMarc Clifton6-Mar-16 4:54 
GeneralRe: Debugging... Pin
Chris C-B6-Mar-16 4:46
Chris C-B6-Mar-16 4:46 
GeneralRe: Debugging... Pin
Andy Belton7-Mar-16 5:40
Andy Belton7-Mar-16 5:40 
GeneralRe: Debugging... Pin
kmoorevs6-Mar-16 5:44
kmoorevs6-Mar-16 5:44 
GeneralRe: Debugging... Pin
dan!sh 6-Mar-16 17:21
professional dan!sh 6-Mar-16 17:21 
GeneralRe: Debugging... Pin
BrainiacV7-Mar-16 9:23
BrainiacV7-Mar-16 9:23 
GeneralRIP Pat Conroy Pin
Brisingr Aerowing5-Mar-16 16:12
professionalBrisingr Aerowing5-Mar-16 16:12 
GeneralThe conclusion is not too far off PinPopular
Vivi Chellappa5-Mar-16 13:57
professionalVivi Chellappa5-Mar-16 13:57 
GeneralRe: The conclusion is not too far off Pin
Marc Clifton5-Mar-16 14:44
mvaMarc Clifton5-Mar-16 14:44 
GeneralRe: The conclusion is not too far off Pin
Michael Martin5-Mar-16 16:12
professionalMichael Martin5-Mar-16 16:12 
GeneralRe: The conclusion is not too far off Pin
BillWoodruff5-Mar-16 19:56
professionalBillWoodruff5-Mar-16 19:56 
GeneralRe: The conclusion is not too far off Pin
Jörgen Andersson6-Mar-16 7:50
professionalJörgen Andersson6-Mar-16 7:50 
GeneralRe: The conclusion is not too far off Pin
Mladen Janković6-Mar-16 0:50
Mladen Janković6-Mar-16 0:50 
GeneralRe: The conclusion is not too far off Pin
Daniel Pfeffer6-Mar-16 2:26
professionalDaniel Pfeffer6-Mar-16 2:26 
GeneralRe: The conclusion is not too far off Pin
90823656-Mar-16 5:12
90823656-Mar-16 5:12 
GeneralRe: The conclusion is not too far off Pin
Daniel Pfeffer6-Mar-16 5:47
professionalDaniel Pfeffer6-Mar-16 5:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.