Skip to content

Instantly share code, notes, and snippets.

@ihnorton
Last active December 24, 2015 04:29
Show Gist options
  • Select an option

  • Save ihnorton/6744267 to your computer and use it in GitHub Desktop.

Select an option

Save ihnorton/6744267 to your computer and use it in GitHub Desktop.
How to run gdb + Julia on Windows
  1. download mingw-64 from here

  2. extract to path SOMEWHERE

  3. start command prompt

  4. set up paths

    a. mingw

    set PATH=%PATH%;SOMEWHERE/x64-4.8.1-release-win32-seh-rev5/mingw64/bin

    b. julia/bin, if not already

    set PATH=%PATH%;C:\path\to\julia\bin

  5. start julia inside gdb:

    gdb julia-readline-debug

  6. run julia in gdb

    (gdb) run

  7. run help()

    julia> help()

  8. at this point, assuming it crashes, you should see the (gdb) prompt again, and a short message about the crash. To get the backtrace type:

    (gdb) bt

  9. copy the whole session to a gist and send the link. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment