www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Can't debug my solution

reply Matheus Reis <m_goncalves live.com> writes:
Hello, people!

I'm Matheus, a 20 y/o game developer who wants to get started 
with D. It has really caught my attention, and I've been playing 
with it for some hours now.

I've got it all working (without some "phobos.lib", is it really 
needed?) with Xamarin Studio but I can't get it to debug my 
solution when I run it. What do I need to do?

I can run it with debugging OFF (ctrl-f5) but can't run it 
"normally". What am I missing?

Thanks in advance! :)
Dec 19 2015
next sibling parent reply tcak <1ltkrs+3wyh1ow7kzn1k sharklasers.com> writes:
On Saturday, 19 December 2015 at 20:52:41 UTC, Matheus Reis wrote:
 Hello, people!

 I'm Matheus, a 20 y/o game developer who wants to get started 
 with D. It has really caught my attention, and I've been 
 playing with it for some hours now.

 I've got it all working (without some "phobos.lib", is it 
 really needed?) with Xamarin Studio but I can't get it to debug 
 my solution when I run it. What do I need to do?

 I can run it with debugging OFF (ctrl-f5) but can't run it 
 "normally". What am I missing?

 Thanks in advance! :)
What is the OS? Have you installed and activated GDB plugin? If you are not doing something special, phobos functions are included in your executable already. So you shouldn't have any problem with it.
Dec 19 2015
parent reply Matheus Reis <m_goncalves live.com> writes:
Windows 10 (64-bit).

I can't seem to find the GDB plugin (even tried searching for it 
in Xamarin's AddIn manager).

The "phobos.lib missing" thing was happening when I was trying to 
use Code::Blocks, not an issue any more. Sorry about that, I'm 
not experienced with actual languages (since I use game engines 
to develop games, only).

Actually, the debug thing is not a HUGE problem and I've been 
using D for some hours now and being able to make some cool stuff 
(like objects' array, dealing with files, etc) and show things 
via console. If there's no easy way to fix it, I can keep using 
it the way I am right now.

I'm now concerned about libraries. Since I'm not used to 
languages, I've no clue on how to integrate them to my projects. 
I've tried to add the lib folder to my project's, but I can't 
import them that way.

If I'm not bothering you, could you please help me with that?

Thanks for the response! :)
Dec 19 2015
parent Matheus Reis <m_goncalves live.com> writes:
Got simpledisplay.d/color.d working by simply adding them to my 
project's folder and I'm now playing with it. What I've 
accomplished so far:

http://i.imgur.com/aik9Ovj.gif

(some objects from a class to draw circles in their position, and 
a simple collision check with screen borders)

I'm pretty satisfied with the results, tbh. :DD

As I said, I really liked the language and will keep trying to 
learn more about it, hoping to make a simple game sooner or later.
Dec 20 2015
prev sibling parent reply Israel <robindahoods gmail.com> writes:
On Saturday, 19 December 2015 at 20:52:41 UTC, Matheus Reis wrote:
 Hello, people!

 I'm Matheus, a 20 y/o game developer who wants to get started 
 with D. It has really caught my attention, and I've been 
 playing with it for some hours now.

 I've got it all working (without some "phobos.lib", is it 
 really needed?) with Xamarin Studio but I can't get it to debug 
 my solution when I run it. What do I need to do?

 I can run it with debugging OFF (ctrl-f5) but can't run it 
 "normally". What am I missing?

 Thanks in advance! :)
You dont happen to be on OSX?
Dec 19 2015
parent Basile B. <b2.temp gmx.com> writes:
On Sunday, 20 December 2015 at 01:29:59 UTC, Israel wrote:
 On Saturday, 19 December 2015 at 20:52:41 UTC, Matheus Reis 
 wrote:
 Hello, people!

 I'm Matheus, a 20 y/o game developer who wants to get started 
 with D. It has really caught my attention, and I've been 
 playing with it for some hours now.

 I've got it all working (without some "phobos.lib", is it 
 really needed?) with Xamarin Studio but I can't get it to 
 debug my solution when I run it. What do I need to do?

 I can run it with debugging OFF (ctrl-f5) but can't run it 
 "normally". What am I missing?

 Thanks in advance! :)
You dont happen to be on OSX?
He's on Windows since he mentioned "phobos.lib" and not "libphobos2.a"
Dec 19 2015