1

Program is here, although it's a lot of code and I don't know where the issue is:

https://github.com/rocurley/BlockPhys

My program hangs (gloss window displays whatever's behind it, and debugging information is not printed) whenever I run it. Ordinarily I would run it in profiling mode to find what looks like an infinite loop:

cabal run --ghc-options="-osuf p_o -prof -auto -auto-all"

But (despite what other questions would lead me to believe) the profiling file is blank after I ^c the program.

The other option for debugging infinite loops I know of is GHCI, but when I run main via cabal repl, the program works!

Does anyone have an idea where to start debugging this?

1
  • 1
    If all else fails, attach gdb and trace the machine instructions Commented Mar 26, 2015 at 17:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.