wiki:Debugging

Debugging the Server on Windows

Using Visual Studio. Set the startup project as !ServerCore_Mentor. Do a properties on !ServerCore_Mentor and under Debugging, add "run" without the quotes in the Command Arguments edit box.

Debugging the Server on Linux

Use gdb.

Debugging the Web Server Extensions on Windows

The best thing here is to install the web tier first, then copy the debug DLLs to where you have the release ones. It may be good to delete the release DLLs to make sure that you aren't running them. Edit the php.ini file so that it points to the debug DLLs.

Apache

Edit httpd.conf so that it points to the debug DLLs.

Somehow attach to the process...

IIS

PHP (mapadmin)

By default the bundled php is configured not to display errors for security reasons,
however, if you encounter problems you can enable display of the errors by editing
C:\Program Files\MapGuideOpenSource2.0\WebServerExtensions\Php\php.ini
and changing display_errors = Off to display_errors = On

This is not recommended for production servers as sensitive information may be exposed in the error messages

Debugging the Web Server Extensions on Linux

Last modified 15 years ago Last modified on Dec 16, 2008, 11:03:50 PM
Note: See TracWiki for help on using the wiki.