Reinhard Pagitsch <[EMAIL PROTECTED]> writes: >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 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. I usually don't bother with that but just let the system fire up VisualStudio when a segfault or abort happens.