on master help sign in
Merge pull request #4219 from robstewart57/docs-debug-symbols
4c79980Ahmad Salim Al-Sibahi
docs/tutorial/miscellany.rst+8
@@ -366,6 +366,14 @@ is shown below :
366 main = do
366 main = do
367 putStrLn $ show $ factorial 3
367 putStrLn $ show $ factorial 3
368
368
369+To compile the generated C with debugging information e.g. to use
370+``gdb`` to debug segmentation faults in Idris programs, use the
371+``%flag C`` pragma to include debugging symbols, as is shown below :
372+
373+.. code-block:: idris
374+
375+ %flag C "-g"
376+
369JavaScript Target
377JavaScript Target
370=================
378=================
371
379