Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Changes
Page history
Update debugging
authored
Apr 14, 2022
by
umaumax
Show whitespace changes
Inline
Side-by-side
debugging.md
View page @
a8d9fb21
...
...
@@ -376,6 +376,11 @@ int main() {
### 意図しないSEGV
想定と異なるバージョンのheaderや共有ライブラリを利用してしまっている(組み合わさっている可能性)可能性がある
### 意図しない挙動
*
`printf`
でのフォーマット間違いは意図しない挙動を引き起こす可能性が非常に高いことに注意
*
予想不能な不可解な場合は個のケースが多い
*
特に、intの型やStringに対して
`c_str()`
を使わずに、
`%s`
とするパターンが多い
### 例外が発生した箇所(try-catchしている場合を含む)のスタックトレースを取得したい
[
tnakagome/exray: Show stack traces from C\+\+ exceptions at run\-time without rebuilding target applications
](
https://github.com/tnakagome/exray
)
...
...
...
...