Browse Source

* Fixed compilation with dmwdebug define

git-svn-id: trunk@17278 -
michael 14 years ago
parent
commit
91c824abbc
1 changed files with 5 additions and 1 deletions
  1. 5 1
      packages/fcl-web/src/jsonrpc/fpjsonrpc.pp

+ 5 - 1
packages/fcl-web/src/jsonrpc/fpjsonrpc.pp

@@ -357,6 +357,10 @@ resourcestring
 
 
 implementation
 implementation
 
 
+{$IFDEF WMDEBUG}
+uses dbugintf;
+{$ENDIF}
+
 function CreateJSONErrorObject(Const AMessage : String; Const ACode : Integer) : TJSONObject;
 function CreateJSONErrorObject(Const AMessage : String; Const ACode : Integer) : TJSONObject;
 
 
 begin
 begin
@@ -1014,7 +1018,7 @@ Var
 
 
 begin
 begin
   Result:=Nil;
   Result:=Nil;
-  {$ifdef wmdebug}SendDebug(Format('Creating instance for %s',[Self.ProviderName]));{$endif}
+  {$ifdef wmdebug}SendDebug(Format('Creating instance for %s',[Self.HandlerMethodName]));{$endif}
   If Assigned(FDataModuleClass) then
   If Assigned(FDataModuleClass) then
     begin
     begin
     {$ifdef wmdebug}SendDebug(Format('Creating datamodule from class %d ',[Ord(Assigned(FDataModuleClass))]));{$endif}
     {$ifdef wmdebug}SendDebug(Format('Creating datamodule from class %d ',[Ord(Assigned(FDataModuleClass))]));{$endif}