git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18186 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Manuel Guesdon 2003-11-24 12:22:56 +00:00
parent 7a8088abc5
commit 7096ad93e9
4 changed files with 30 additions and 16 deletions

View file

@ -70,6 +70,7 @@ RCS_ID("$Id$")
{
if (!_reasons)
{
NSDebugMLog(@"_exception reason=%@",[_exception reason]);
ASSIGN(_reasons,[[_exception reason] componentsSeparatedByString:@"\n"]);
NSDebugMLog(@"_reasons=%@",_reasons);
};
@ -88,6 +89,9 @@ RCS_ID("$Id$")
{
ASSIGN(_exception,exception);
NSDebugMLog(@"_exception=%@",_exception);
NSDebugMLog(@"_exception name=%@",[_exception name]);
NSDebugMLog(@"_exception reason=%@",[_exception reason]);
NSDebugMLog(@"_exception userInfo=%@",[_exception userInfo]);
};
-(id)getTmpUserInfoValue

View file

@ -40,7 +40,7 @@ RCS_ID("$Id$")
#ifdef TCSDB
#include <TCSimpleDB/TCSimpleDB.h>
#endif
#ifdef GDL2
#if HAVE_GDL2
#include <EOControl/EOKeyValueCoding.h>
#endif
@ -614,7 +614,7 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
forKeyPath:(NSString*)keyPath
{
id retValue=nil;
#ifdef GDL2
#ifdef HAVE_GDL2
id EONullNull=[EONull null];
#else
#ifdef TCSDB
@ -624,13 +624,15 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
#endif
#endif
LOGClassFnStart();
NSDebugMLLog(@"associations",@"GSWAssociation: keyPath=%@ object=%p (class: %@)",
keyPath,object,[object class]);
NSDebugMLLog(@"associations",@"GSWAssociation: keyPath=%@ object=%p (class: %@. SuperClass=%@)",
keyPath,object,[object class],[object superclass]);
if (keyPath && object && object!=EONullNull)
{
#if GDL2
#if HAVE_GDL2
NS_DURING
{
NSDebugMLLog(@"associations",@"GSWAssociation: keyPath=%@ object=%p (class: %@. SuperClass=%@)",
keyPath,object,[object class],[object superclass]);
retValue=[object valueForKeyPath:keyPath];
}
NS_HANDLER
@ -653,8 +655,8 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
// the same as on GDL2
NS_DURING
{
// NSLog(@"GSWAssociation valueInObject:%@ forKeyPath:%@", object, keyPath);
NSDebugMLLog(@"associations",@"GSWAssociation: keyPath=%@ object=%p (class: %@. SuperClass=%@)",
keyPath,object,[object class],[object superclass]);
retValue=[object valueForKeyPath:keyPath];
}
NS_HANDLER
@ -679,6 +681,8 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
Class handlerClass=Nil;
retValue=object;
NSAssert(retValue,@"No Component");
NSDebugMLLog(@"associations",@"GSWAssociation: keyPath=%@ object=%p (class: %@. SuperClass=%@)",
keyPath,object,[object class],[object superclass]);
while(retValue && [keys count]>0)
{
part=[keys objectAtIndex:0];
@ -802,7 +806,9 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
NSDebugMLLog(@"associations",@"GSWAssociation: setValue:%@",value);
NSDebugMLLog(@"associations",@"value class:%@",[value class]);
NSDebugMLLog(@"associations",@"value String class:%@",NSStringFromClass([value class]));
NSDebugMLLog(@"associations",@"object String class:%@",NSStringFromClass([object class]));
NSDebugMLLog(@"associations",@"object String class:%@ superclass=%@",
NSStringFromClass([object class]),
NSStringFromClass([object superclass]));
NSDebugMLLog(@"associations",@"GSWAssociation: keyPath:%@",keyPath);
// NSLog(@"GSWAssociation: setValue:%@ inObject:%@ forKeyPath:%@",value,object,keyPath);
@ -865,11 +871,13 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
NSDebugMLLog(@"associations",@"GSWAssociation: setValue:%@",value);
NSDebugMLLog(@"associations",@"value class:%@",[value class]);
NSDebugMLLog(@"associations",@"value String class:%@",NSStringFromClass([value class]));
NSDebugMLLog(@"associations",@"object String class:%@",NSStringFromClass([object class]));
NSDebugMLLog(@"associations",@"object String class:%@ superclass=%@",
NSStringFromClass([object class]),
NSStringFromClass([object superclass]));
NSDebugMLLog(@"associations",@"GSWAssociation: keyPath:%@",keyPath);
if (keyPath)
{
#if GDL2
#if HAVE_GDL2
[object smartTakeValue:value
forKeyPath:keyPath];
#else // no GDL2
@ -945,7 +953,7 @@ static NSMutableArray* associationsLogsHandlerClasses=nil;
GSWLogAssertGood(tmpObject);
[tmpObject takeValue:value
forKey:part];
#ifdef GDL2
#ifdef HAVE_GDL2
NSDebugMLLog(@"associations",@"object class=%@",[object class]);
NSDebugMLLog(@"associations",@"tmpObject class=%@",[tmpObject class]);
// Turbocat

View file

@ -508,8 +508,8 @@ Bindings
};
NS_HANDLER
{
LOGException(@"GSWBrowser _selections=%@ itemValueToSet=%@ exception=%@",
_selections,itemValueToSet,localException);
LOGException(@"GSWBrowser _selections=%@ selectionsValue=%@ exception=%@",
_selections,selectionsValue,localException);
if (WOStrictFlag)
{
[localException raise];

View file

@ -215,9 +215,10 @@ RCS_ID("$Id$")
LOGObjectFnStart();
GSWStartElement(context);
GSWSaveAppendToResponseElementID(context);
[response appendDebugCommentContentString:[NSString stringWithFormat:@"defName=%@ ID=%@",
[response appendDebugCommentContentString:[NSString stringWithFormat:@"defName=%@ ID=%@ name=%@",
[self definitionName],
[context elementID]]];
[context elementID],
_name]];
componentPrev=[context component];
[self pushRefComponentInContext:context];
if ([context component])
@ -250,7 +251,8 @@ RCS_ID("$Id$")
LOGObjectFnStart();
GSWStartElement(context);
GSWAssertCorrectElementID(context);
NSDebugMLLog(@"gswdync",@"senderId=%@",[context senderID]);
NSDebugMLLog(@"gswdync",@"name=%@ senderId=%@",
_name,[context senderID]);
componentPrev=[context component];
[self pushRefComponentInContext:context];
if ([context component])