-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document all sorts of C debugging tips #9000
Conversation
^^^^^^^^^^^^^^ | ||
|
||
The main challenge is that Julia and gdb each need to have their own | ||
terminal, to allow you to interact with them both. One approach is to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, I usually start julia directly under gdb. I think the only time I have used separate processes is when running julia under valgrind. (perhaps it is a matter of taste though?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Me as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's funny is that I'd swear Ctrl-C did not interrupt to gdb
when I first tried it oh-so-long ago. So that's why I figured this out.
I'll change this (probably just delete the whole section).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be because of the new REPL.
On Nov 13, 2014 12:19 PM, "Tim Holy" [email protected] wrote:
In doc/devdocs/interactivegdb.rst:
@@ -0,0 +1,68 @@
+Interactive debugging withgdb
+----------------------------------
+
+First, you should build the debug version of julia withmake +debug
. Below, lines starting with(gdb)
mean things you should
+type at the gdb prompt.
+
+From the shell
+^^^^^^^^^^^^^^
+
+The main challenge is that Julia and gdb each need to have their own
+terminal, to allow you to interact with them both. One approach is toWhat's funny is that I'd swear Ctrl-C did not interrupt to gdb when I
first tried it oh-so-long ago. So that's why I figured this out.I'll change this (probably just delete the whole section).
—
Reply to this email directly or view it on GitHub
https://github.com/JuliaLang/julia/pull/9000/files#r20319864.
Awesome 👍 |
:D |
Document all sorts of C debugging tips
What does the scouter say about our PR level?! |
thanks @timholy - what's the right conflict resolution for
|
Pick the second one. Surprised there was a conflict... Thanks for doing it! |
No problem, backported in 507a4c6 I think the conflict might be because devdocs/meta was not backported? |
Fulfills a pledge I made on on julia-dev. This moves some info I wrote from the FAQ to the "developer docs", and blatantly steals from sources posted by @ihnorton and @staticfloat. Finally, there's a small number of whitespace changes.