Archived

This topic is now archived and is closed to further replies.

Prozak

Flabergasted: DLL Debugging

Recommended Posts

Prozak    898
This is a complete new thing for me. I had both my engine, and my dll set on "debug" mode. After generating the dll, i copied it to my engine''s plugins folder. I was flabergasted (sp?) while steping through the code, it jumped into the dll''s code... Does a debug dll have internal source code, or a pointer to the source project? quite nice :D (Visual C++ .Net)

[Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD][Yann L.][Enginuity]
The most irrefutable evidence that there is intelligent life in the Universe is that they haven''t contacted us!

Share this post


Link to post
Share on other sites
Prozak    898
.pdb?
All I can find is a file named .plg on my dll''s project folder.

Basicly VStudio knows whats going on right?

I was just amazed at how he discovered where that dll''s source project folder was... even because i rename all my dlls to .bxt ("behaviour extensions")...


[Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD][Yann L.][Enginuity]
The most irrefutable evidence that there is intelligent life in the Universe is that they haven''t contacted us!

Share this post


Link to post
Share on other sites
felisandria    739
Nifty, isn''t it.

Another cool thing you can do is debug from your .dll workspace... it will ask you to provide an executable to run it from, and regardless of whether that executable is a debug executable or not, it will still be able to break in your code (although when you first start up it might have a question mark on your breakpoint due to it not knowing the path yet, but it will find it when it gets there).

I believe it was able to find your code because it knew what code it was built from, despite you copying it, from the debug info in the .dll. If you put it on a different machine it will probably give you a "cannot find source" and ask you to browse for it.

-fel

Share this post


Link to post
Share on other sites