Table of Contents Previous Section

Debugging a Compiled Application

If you have an application that contains both compiled code and WebScript, do the following:

  1. Launch your debugger.

  2. Set breakpoints in the compiled code.

  3. Launch the application's executable in the debugger.

    For example, if you are using gdb, you would type the following:

    	(gdb) run -d /NextLibrary/WebServer/htdocs 
    		MyApplications/Registration
    

  4. In your browser, open the URL you'd normally use to launch your application. For example:
    	http://localhost/cgi-bin/WebObjects/MyApplications/Registration
    
To debug the WebScript portion of the application, you still use logWithFormat: and trace statements as described in "Debugging WebScript." The output from these messages is displayed wherever your debugger displays standard error messages.