Hello Nick,
Nick Ing-Simmons wrote:
Reinhard Pagitsch <[EMAIL PROTECTED]> writes:Ok, that info I found also in my documentation, that I have to compile Perl in debug - mode.Hello,
============================== First I want to whish all a Happy New Year. ==============================
I got the VC 2005 beta 1. And now I try to debug my XS code I written last year.
But I can not find informations how to debug XS code with Visual C.
(I found information how to use gcc)
Thank you for your help, Reinhard
The way I did it (with VC6 Pro) was build my own perl from the sources and set debugging option
dmake CFG=Debug
Does this mean that from now on all my XS modules are compiled in debug - mode?That results in a Config.pm with cl options to build debug objects.
Those seem (looking at makefile.mk) to be
cl -O1 -MD -Zi -DDEBUGGING ...
and link -debug
You can splice those into the Makefile generated by your Makefile.PL
(or hack latter to do it for you).
I have done that to debug Tk under ActivePerl.
But then there is the rather messy business to set up a "project" to _run_ your perl under the debugger.Ok, but what project I have to set? For the whole Perl or only for my module? If I have to set it for the wohle Perl
I usually don't bother with that but just let the system fire up VisualStudio when a segfault or abort happens.
what source files I have to add to my project?
Thank you, Reinhard