CGI Development

Moderators: Jonathan
Number of threads: 55
Number of posts: 121

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Logging in CGI/C Posted by gamodg on 3 May 2009 at 8:22 PM
Hi
I have a cgi controller that takes requests and depending on request it invokes the object of the desired class which generates a XML and sends the XML as a response.
On the client this XML is combined with XSL to display a HTML page.

For ex.

request---->controller------->router.cgi(a linked list of name value pair is generated and passed to XML.c)-------->XML(using libxml library )-------->client(XML+XSL=HTML).


My problem is that if anybody prints something to debug a code that goes as a response since I am using print to send response and the XML breaks.

How can I debug my code without breaking the XML.
Please suggest an approach or a framework that can be employed here.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.