Update
This commit is contained in:
parent
40e30eb386
commit
e0e62826e2
4 changed files with 1677 additions and 1674 deletions
|
@ -19,6 +19,8 @@ Debugging programs mostly happens in these steps:
|
|||
|
||||
For debugging your program it may greatly help to make **debugging builds** -- you may pass flags to your compiler that make the program better for debugging, e.g. with [gcc](gcc.md) you will likely want to use `-g` (generate debug symbols) and `-Og` (optimize for debugging) flags. Without this debuggers will still work but may be e.g. unable to tell you the name of function inside which the program crashed etc.
|
||||
|
||||
Also as with everything you get better at debugging with practice, especially when you learn about common types of bugs and how they manifest -- for example you'll learn to just quickly scan for the famous *[off by one](off_by_one.md)* bugs near any loop, you'll learn that when a value grows and then jumps to zero it's an [overflow](overflow.md), that your program getting stuck and crashing after a while could mean infinite [recursion](recursion.md) etc.
|
||||
|
||||
The following are some of the most common methods used to debug software, roughly in order by which one typically applies them in practice.
|
||||
|
||||
### Testing
|
||||
|
|
3312
random_page.md
3312
random_page.md
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
@ -3,8 +3,8 @@
|
|||
This is an autogenerated article holding stats about this wiki.
|
||||
|
||||
- number of articles: 561
|
||||
- number of commits: 714
|
||||
- total size of all texts in bytes: 3143657
|
||||
- number of commits: 715
|
||||
- total size of all texts in bytes: 3147615
|
||||
|
||||
longest articles:
|
||||
|
||||
|
@ -24,6 +24,22 @@ longest articles:
|
|||
latest changes:
|
||||
|
||||
```
|
||||
Date: Tue Feb 27 17:25:59 2024 +0100
|
||||
bloat.md
|
||||
cpu.md
|
||||
debugging.md
|
||||
feminism.md
|
||||
internet.md
|
||||
iq.md
|
||||
justice.md
|
||||
kiss.md
|
||||
lrs.md
|
||||
main.md
|
||||
political_correctness.md
|
||||
random_page.md
|
||||
wiki_pages.md
|
||||
wiki_stats.md
|
||||
woman.md
|
||||
Date: Tue Feb 27 12:07:29 2024 +0100
|
||||
bloat.md
|
||||
computer.md
|
||||
|
@ -42,21 +58,6 @@ wiki_pages.md
|
|||
wiki_stats.md
|
||||
woman.md
|
||||
Date: Mon Feb 26 21:26:25 2024 +0100
|
||||
atheism.md
|
||||
iq.md
|
||||
line.md
|
||||
marketing.md
|
||||
random_page.md
|
||||
wiki_pages.md
|
||||
wiki_stats.md
|
||||
wiki_style.md
|
||||
woman.md
|
||||
Date: Mon Feb 26 18:14:21 2024 +0100
|
||||
internet.md
|
||||
money.md
|
||||
piracy.md
|
||||
political_correctness.md
|
||||
programming_tips.md
|
||||
```
|
||||
|
||||
most wanted pages:
|
||||
|
|
Loading…
Reference in a new issue