Changes between Version 4 and Version 5 of HowToDebug
- Timestamp:
- 11/07/13 08:51:41 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowToDebug
v4 v5 4 4 5 5 The easiest way to debug Java code is to add some logging statements 6 to the code. (Sigh.)6 to the code. 7 7 8 8 == Debugging XSLT scripts == 9 9 10 Much of GN's functionality is implemented through XSLT scripts10 Much of !GeoNetwork's functionality is implemented through XSLT scripts 11 11 that are applied to the XML output of some Java code. 12 12 It is possible to see that XML output and run an XSLT script … … 14 14 The best way to do this is to enable Jeeves debugging. 15 15 In `web/geonetwork/WEB-INF/config.xml`, in the `<general>` 16 section, set `<debug>true</debug>` and restart GN. Then16 section, set `<debug>true</debug>` and restart !GeoNetwork. Then 17 17 you can add an exclamation mark (`!`) to the end of the 18 18 name of a service to view the intermediate XML. 19 For example, if you bring up the GNhome page in your19 For example, if you bring up the !GeoNetwork home page in your 20 20 browser, the URL will end in `...main.home`. Edit the 21 21 URL to `...main.home!` and press Enter. The intermediate … … 47 47 * Microsoft Script Editor, which comes with Office, provides a full !JavaScript debugger like the one in Firebug. 48 48 This tool takes up a lot of screen real estate; it's much easier to use if you have a second display. 49