| Thread overview | |||||
|---|---|---|---|---|---|
|
October 11, 2012 Debugging experience on Mac OS X | ||||
|---|---|---|---|---|
| ||||
What is actually supposed to work on Mac OS X in regards to debugging and exception?
When an exception is thrown I do get a backtrace but without line information. Does this work on any other platform? Is it supposed to be working on Mac OS X?
In the debugger, GDB, the only thing that seems to work is getting a backtrace. No line numbers and nothing else seems to be possible to do.
I'm using the GDB shipped with Xcode, I do understand that I might need to update to a later version but which one? And how should I compile the code, with "-gc" or "-g"?
I'm DMD 2.060 on Mac OS X 10.8.2.
--
/Jacob Carlborg
| ||||
October 15, 2012 Re: Debugging experience on Mac OS X | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Oct 11, 2012, at 12:23 AM, Jacob Carlborg <doob@me.com> wrote:
> What is actually supposed to work on Mac OS X in regards to debugging and exception?
>
> When an exception is thrown I do get a backtrace but without line information. Does this work on any other platform? Is it supposed to be working on Mac OS X?
This is a compiler issue and there are a bunch of tickets for it. The way debug info is generated on OSX has to change. As things stand, debugging on OSX is incredibly painful. You might be able to get a mangled backtrace out of GDB right now, but that's it.
| |||
October 16, 2012 Re: Debugging experience on Mac OS X | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | On 2012-10-15 23:41, Sean Kelly wrote: > This is a compiler issue and there are a bunch of tickets for it. The way debug info is generated on OSX has to change. As things stand, debugging on OSX is incredibly painful. You might be able to get a mangled backtrace out of GDB right now, but that's it. Yeah, I've noticed. Thanks, then I know it's not just me. -- /Jacob Carlborg | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply