www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Invoking MAGO debugger

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

I'm trying to integrate MAGO into DlangIDE.

I can easy create instance of MAGO DebugEngine, but having 
problems with obtaining of IDebugPort which is needed for 
invoking of LaunchSuspended.
It looks like to get IDebugPort, I need IDebugCoreServer2 
instance.
Does anybody know how to do it?
Normally, it's being created by VisualStudio AFAIK.


Best regards,
     Vadim
Feb 26 2015
parent reply "michaelc37" <michaelc37 msn.com> writes:
On Thursday, 26 February 2015 at 10:20:31 UTC, Vadim Lopatin 
wrote:
 Hello!

 I'm trying to integrate MAGO into DlangIDE.

 I can easy create instance of MAGO DebugEngine, but having 
 problems with obtaining of IDebugPort which is needed for 
 invoking of LaunchSuspended.
 It looks like to get IDebugPort, I need IDebugCoreServer2 
 instance.
 Does anybody know how to do it?
 Normally, it's being created by VisualStudio AFAIK.


 Best regards,
     Vadim
I once remember pulling out my hair trying todo the same in order to get it to work with a monodevelop win32 debugger addon. It resulted in a writing new clr wrapper with a different exposed interface https://github.com/aBothe/MagoWrapper e.g. of how the debugee was was launched here: https://github.com/aBothe/MagoWrapper/blob/master/DebugEngine/MagoWrapper/NativeDebugger.cpp
Feb 26 2015
parent "Vadim Lopatin" <coolreader.org gmail.com> writes:
On Thursday, 26 February 2015 at 18:37:17 UTC, michaelc37 wrote:
 On Thursday, 26 February 2015 at 10:20:31 UTC, Vadim Lopatin 
 wrote:
 Hello!

 I'm trying to integrate MAGO into DlangIDE.

 I can easy create instance of MAGO DebugEngine, but having 
 problems with obtaining of IDebugPort which is needed for 
 invoking of LaunchSuspended.
 It looks like to get IDebugPort, I need IDebugCoreServer2 
 instance.
 Does anybody know how to do it?
 Normally, it's being created by VisualStudio AFAIK.


 Best regards,
    Vadim
I once remember pulling out my hair trying todo the same in order to get it to work with a monodevelop win32 debugger addon. It resulted in a writing new clr wrapper with a different exposed interface https://github.com/aBothe/MagoWrapper e.g. of how the debugee was was launched here: https://github.com/aBothe/MagoWrapper/blob/master/DebugEngine/MagoWrapper/NativeDebugger.cpp
Thank you a lot! BTW, it's not clear what license in used for MagoWrapper. In readme, it's said that it's under GPL2, but everywhere in source code I see Apache license.
Mar 01 2015