Child pages
  • How to debug a D2W application

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added D2WTraceRuleFiringEnabled to enable rule tracing

...

D2W rule tracing.

D2W Rule Tracing

One way to Probably the easiest way to get rule tracing output is to add the following property in your run configuration in Eclipse (it's in the WO-Tab):

-D2WTraceRuleFiringEnabled true

When you run your application you will get output in the Eclipse console that looks like this:

No Format

Aug 10 08:50:17 ImmoData[56741] DEBUG NSLog  - ****** fire :      0 : *true* => startupTask = queryAll (0)
Aug 10 08:50:17 ImmoData[56741] DEBUG NSLog  - ****** fire :      0 : *true* => startupEntityName = null (0)
Aug 10 08:50:17 ImmoData[56741] DEBUG NSLog  - ****** fire :     60 : (task = 'queryAll') => pageName = templateNameForQueryAllPage [er.directtoweb.assignments.ERDKeyValueAssignment] (60001)
Aug 10 08:50:17 ImmoData[56741] DEBUG NSLog  - ****** fire :     20 : *true* => templateNameForQueryAllPage = ERMODQueryEntitiesPage (20000)
Aug 10 08:50:17 ImmoData[56741] DEBUG NSLog (null) - ****** fire :      0 : *true* => targetOutput = html (0)
Aug 10 08:50:17 ImmoData[56741] DEBUG NSLog (null) - ****** fire :      0 : *true* => pageWrapperName = PageWrapper (0)
Aug 10 08:50:17 ImmoData[56741] DEBUG NSLog (null) - ****** fire :     20 : (task = 'queryAll') => displayNameForPageConfiguration = Search All (20001)

Another way to turn on rule tracing is in your app Properties:

...