CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: General Discussions: General Questions:
Debugging C code in under perl

 



bobo-ssi
New User

Feb 18, 2011, 1:02 AM

Post #1 of 1 (10740 views)
Debugging C code in under perl Can't Post

Hi all,

I am kind of newbie and I need some help. I am using inline C code in my perl script and I like to set break-points in the C code and debug it.

I found out that is necessary to enable the C debugger, something like this:

OPTIMIZE

This controls the MakeMaker OPTIMIZE setting. By setting this value to '-g', you can turn on debugging support for your Inline extensions. This will allow you to be able to set breakpoints in your C code using a debugger like gdb

But how do I actually do it? How do I set the "-g" option? Do I have to compile something?

If this point is solved and I can jump form perl code to c code in debug mode, next question would be: can I use the Komodo environment to do this?

Thanks in advance,

bobo-ssi

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives