Skip to content
Snippets Groups Projects
Commit 9a02f72f authored by Dominik Zobel's avatar Dominik Zobel
Browse files

Update summary of strategies

parent c8f99516
No related branches found
No related tags found
1 merge request!56Debugging Strategies lecture notes
...@@ -29,23 +29,25 @@ digraph { ...@@ -29,23 +29,25 @@ digraph {
} }
``` ```
## General strategies ## Strategies covered in this lecture
- Search online for this or similar issues - Understand compiler usage and messages
- Add output verbosity, especially around where the error occured - Include debug output/logging mechanisms
- Narrow down the code where the error occured (divide and conquer) - Narrow down the code where the error occured (divide and conquer)
- Use a debugger - Use a debugger
- Did it work before? What changed since?
- If changes are committed in a repo,
find the last valid commit (`git bisect`)
# Compiler errors {.leftalign} ## Other strategies
- Try to locate and isolate the code section - Consider the last working state and focus on what changed since
- If changes are committed in a repo,
find the last valid commit (`git bisect`)
- Search online for this or similar issues
- Ask colleagues working with the same code
- Call for vendor support - Call for vendor support
# Compile-time errors {.leftalign} # Compile-time errors {.leftalign}
- Make the compiler say what you need to know - Make the compiler say what you need to know
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment