Changes between Version 2 and Version 3 of Building/DebuggingGHC
- Timestamp:
- 08/21/09 02:00:10 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Building/DebuggingGHC
v2 v3 3 3 This page is about strategies that may help you find a bug in GHC or its runtime system. 4 4 5 == Consistency checking flags==5 == At compile time == 6 6 7 7 At compile time (see also the [http://www.haskell.org/ghc/docs/latest/html/users_guide/options-debugging.html relevant User Manual section]): … … 13 13 * The flag `-dppr-debug` makes the `-ddump-x` flags print much more verbose output. Use this if you are getting desperate! 14 14 15 At link time: 15 == At link time == 16 16 17 17 * Add `-debug` to the GHC command line when linking. This links the program against a special version of the runtime system that does lots of extra internal consistency checking. Overall performance is significantly reduced. '''Simon: any flags?''' 18 19 == At run time == 18 20 19 21 At run time (see also the [http://www.haskell.org/ghc/docs/latest/html/users_guide/runtime-control.html#rts-options-debugging relevant User Manual section]): 20 22 * Use `+RTS -sstderr` or `+RTS -Sstderr` to watch garbage collection activity. 21 23 24 == At crash time == 25 26 If your GHC-compiled program actually crashes, you may have to roll up your sleeves and wake up gdb. There's a [wiki:DebuggingGhcCrashes whole Wiki page describing what to do]. 27 28 --------------- 22 29 == Ticky-ticky profiling == 23 30
