Changes between Version 2 and Version 3 of Building/DebuggingGHC


Ignore:
Timestamp:
Aug 21, 2009 9:00:10 AM (6 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/DebuggingGHC

    v2 v3  
    33This page is about strategies that may help you find a bug in GHC or its runtime system.
    44
    5 == Consistency checking flags ==
     5== At compile time ==
    66
    77At compile time (see also the [http://www.haskell.org/ghc/docs/latest/html/users_guide/options-debugging.html relevant User Manual section]):
     
    1313 * The flag `-dppr-debug` makes the `-ddump-x` flags print much more verbose output.  Use this if you are getting desperate!
    1414
    15 At link time:
     15== At link time ==
    1616
    1717 * 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 ==
    1820
    1921At 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]):
    2022  * Use `+RTS -sstderr` or `+RTS -Sstderr` to watch garbage collection activity.
    2123
     24== At crash time ==
     25
     26If 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---------------
    2229== Ticky-ticky profiling ==
    2330