Przeglądaj źródła

* Small improvements

Michaël Van Canneyt 1 rok temu
rodzic
commit
ab561ab62a

+ 1 - 1
demo/debugcapture/democapture.lpi

@@ -59,8 +59,8 @@
     <Parsing>
     <Parsing>
       <SyntaxOptions>
       <SyntaxOptions>
         <AllowLabel Value="False"/>
         <AllowLabel Value="False"/>
-        <CPPInline Value="False"/>
         <UseAnsiStrings Value="False"/>
         <UseAnsiStrings Value="False"/>
+        <CPPInline Value="False"/>
       </SyntaxOptions>
       </SyntaxOptions>
     </Parsing>
     </Parsing>
     <CodeGeneration>
     <CodeGeneration>

+ 7 - 8
demo/debugcapture/democapture.lpr

@@ -24,14 +24,13 @@ Var
   I : integer;
   I : integer;
 
 
 begin
 begin
-  With TDebugCaptureClient.Create(Nil) do
-    try
-      BufferTimeout:=100;
-      HookConsole:=True;
-      For I:=1 to 100 do
-        Writeln('This is output line '+IntToStr(I))
-    finally
-      Free;
+  With TDebugCaptureClient.Instance do
+    begin
+    URL:='/debugcapture';
+    BufferTimeout:=100;
+    HookConsole:=True;
     end;
     end;
+  For I:=1 to 100 do
+    Writeln('This is output line '+IntToStr(I))
 end.
 end.
 
 

+ 3 - 1
demo/debugcapture/index.html

@@ -3,10 +3,12 @@
 <head>
 <head>
   <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
   <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
   <meta name="viewport" content="width=device-width, initial-scale=1"/>
   <meta name="viewport" content="width=device-width, initial-scale=1"/>
-  <title>scratch</title>
+  <title>Debugcapture client demo</title>
   <script src="democapture.js"></script>
   <script src="democapture.js"></script>
 </head>
 </head>
 <body>
 <body>
+  <h1>Debugcapture client example</h1>
+  <p>Debug console output, also sent to debug server</p>
   <div id="pasjsconsole"></div>
   <div id="pasjsconsole"></div>
   <script>
   <script>
     rtl.run();
     rtl.run();