How to debug a fastcgi script?

Asked by At

I have a fastcgi script I wrote in C++ with the help of fastcgi++ library. I recently made a change to my script which causes a test to fail. How do I debug that script?

I found on the internet that one way to do it is to write an infinite loop in the code and then attach the debugger to the process and use the debugger to break out of the loop but it seems little off. There must be a better way!

I am using Fedora 30. And the script is on localhost and not a server

0 Answers