www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Any D IDE on Mac OSX with debugging support?

reply Vadim Lopatin <coolreader.org gmail.com> writes:
Hello,


Is there any IDE which allows debugging D apps on OSX?
I'm trying Mono-D, but getting error
    "Debugger operation failed A syntax error in expression, near 
'sizeof(void*)'"

GDB is installed using homebrew. Probably, something is wrong 
with my gdb. When I'm trying to start debugging using console GDB 
interface - it fails with message about unsigned application. Is 
there any instruction how to get GDB working on OSX?

Code completion and symbol lookups neither do not work on Mono-D 
/ OSX.
Does anyone managed to get it working?


Best regards,
     Vadim
Nov 15 2015
next sibling parent reply Rikki Cattermole <alphaglosined gmail.com> writes:
On 16/11/15 7:45 PM, Vadim Lopatin wrote:
 Hello,


 Is there any IDE which allows debugging D apps on OSX?
 I'm trying Mono-D, but getting error
     "Debugger operation failed A syntax error in expression, near
 'sizeof(void*)'"

 GDB is installed using homebrew. Probably, something is wrong with my
 gdb. When I'm trying to start debugging using console GDB interface - it
 fails with message about unsigned application. Is there any instruction
 how to get GDB working on OSX?

 Code completion and symbol lookups neither do not work on Mono-D / OSX.
 Does anyone managed to get it working?


 Best regards,
      Vadim
On recent versions of OSX, Apple has by default made it so that all applications must be signed by default. You can disable this behavior through system settings and security. I suspect this is what is stopping it. https://answers.uchicago.edu/25481
Nov 15 2015
next sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2015-11-16 08:48, Rikki Cattermole wrote:

 On recent versions of OSX, Apple has by default made it so that all
 applications must be signed by default. You can disable this behavior
 through system settings and security.
 I suspect this is what is stopping it.
Alternatively use LLDB shipped with Xcode. But that won't of course have the D support that GDB has. Although I don't know if that works for OS X. -- /Jacob Carlborg
Nov 16 2015
parent Vadim Lopatin <coolreader.org gmail.com> writes:
On Monday, 16 November 2015 at 08:15:36 UTC, Jacob Carlborg wrote:
 On 2015-11-16 08:48, Rikki Cattermole wrote:

 On recent versions of OSX, Apple has by default made it so 
 that all
 applications must be signed by default. You can disable this 
 behavior
 through system settings and security.
 I suspect this is what is stopping it.
Alternatively use LLDB shipped with Xcode. But that won't of course have the D support that GDB has. Although I don't know if that works for OS X.
Mono-D adds -i=mi parameter to debugger command line so it looks like it supports only GDB.
Nov 16 2015
prev sibling next sibling parent Vadim Lopatin <coolreader.org gmail.com> writes:
On Monday, 16 November 2015 at 07:48:31 UTC, Rikki Cattermole 
wrote:
 On 16/11/15 7:45 PM, Vadim Lopatin wrote:
[...]
On recent versions of OSX, Apple has by default made it so that all applications must be signed by default. You can disable this behavior through system settings and security. I suspect this is what is stopping it. https://answers.uchicago.edu/25481
Thank you! Let me try that.
Nov 16 2015
prev sibling parent Vadim Lopatin <coolreader.org gmail.com> writes:
On Monday, 16 November 2015 at 07:48:31 UTC, Rikki Cattermole 
wrote:
 On 16/11/15 7:45 PM, Vadim Lopatin wrote:
 Hello,


 Is there any IDE which allows debugging D apps on OSX?
 I'm trying Mono-D, but getting error
     "Debugger operation failed A syntax error in expression, 
 near
 'sizeof(void*)'"

 GDB is installed using homebrew. Probably, something is wrong 
 with my
 gdb. When I'm trying to start debugging using console GDB 
 interface - it
 fails with message about unsigned application. Is there any 
 instruction
 how to get GDB working on OSX?

 Code completion and symbol lookups neither do not work on 
 Mono-D / OSX.
 Does anyone managed to get it working?


 Best regards,
      Vadim
On recent versions of OSX, Apple has by default made it so that all applications must be signed by default. You can disable this behavior through system settings and security. I suspect this is what is stopping it. https://answers.uchicago.edu/25481
Changing of system settings, creation of certificate and signing of GDB executable helped to get gdb debugging working when running from command line. But debugging from Mono-D still fails with the same error.
Nov 16 2015
prev sibling parent Bruno Medeiros <bruno.do.medeiros+dng gmail.com> writes:
On 16/11/2015 06:45, Vadim Lopatin wrote:
 Hello,


 Is there any IDE which allows debugging D apps on OSX?
 I'm trying Mono-D, but getting error
     "Debugger operation failed A syntax error in expression, near
 'sizeof(void*)'"

 GDB is installed using homebrew. Probably, something is wrong with my
 gdb. When I'm trying to start debugging using console GDB interface - it
 fails with message about unsigned application. Is there any instruction
 how to get GDB working on OSX?

 Code completion and symbol lookups neither do not work on Mono-D / OSX.
 Does anyone managed to get it working?


 Best regards,
      Vadim
Yes, DDT ( http://ddt-ide.github.io/ ) supports debugging on OSX, using GDB, but you have to install it with homebrew. If you have done it already, then it should work, but check this article as well: http://ntraft.com/installing-gdb-on-os-x-mavericks/ -- Bruno Medeiros https://twitter.com/brunodomedeiros
Nov 30 2015