Skip to content

Commit 8c7a52d

Browse files
committed
enableDebugger() -> enableTracy()
1 parent 42df4f8 commit 8c7a52d

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

doc/cs/configuring.texy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ K nastavení aplikace nám poslouží třída [Configurator | api:Nette\Configur
2222
Vývojářský režim
2323
----------------
2424

25-
Nejzákladnějším nastavením je to, které říká, zda aplikace běží v produkčním nebo vývojářském režimu. To například ovlivňuje [Tracy |tracy:homepage] a říká ji, zda chyby zobrazovat nebo logovat. To je potřeba nastavit ihned při startu, tedy dřív, než se zpracovávají konfigurační soubory, protože musí být jasné i to, zda se má případná chyba v konfiguračním souboru zobrazit nebo zalogovat. Prostředí nastavíme pomocí `setDebugMode()` a zapneme Tracy `enableDebugger()`.
25+
Nejzákladnějším nastavením je to, které říká, zda aplikace běží v produkčním nebo vývojářském režimu. To například ovlivňuje [Tracy |tracy:homepage] a říká ji, zda chyby zobrazovat nebo logovat. To je potřeba nastavit ihned při startu, tedy dřív, než se zpracovávají konfigurační soubory, protože musí být jasné i to, zda se má případná chyba v konfiguračním souboru zobrazit nebo zalogovat. Prostředí nastavíme pomocí `setDebugMode()` a zapneme Tracy `enableTracy()`.
2626

2727
/--php
2828
// aktivuje laděnku pouze pro dané ip adresy
2929
$configurator->setDebugMode(['90.180.45.360', '90.180.45.361']);
3030
// nebo nikomu
3131
$configurator->setDebugMode(FALSE);
3232

33-
$configurator->enableDebugger(__DIR__ . '/../log'); // Do adresáře log/ se bodou ukládat výstupy Laděnky
33+
$configurator->enableTracy(__DIR__ . '/../log'); // Do adresáře log/ se bodou ukládat výstupy Laděnky
3434
\--
3535

3636

doc/cs/presenters.texy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Aktivuje [debugger a logger |tracy:] ve striktním režimu:
111111

112112
/--php
113113
//$configurator->setDebugMode(TRUE);
114-
$configurator->enableDebugger(__DIR__ . '/../log');
114+
$configurator->enableTracy(__DIR__ . '/../log');
115115
\--
116116

117117
Nastavíme složku do které se budou zapisovat dočasné soubory

doc/cs/quickstart/getting-started.texy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ V produkčním módu je Tracy samozřejmě vypnuta a nezobrazuje žádné citliv
9898

9999
/--php
100100
$configurator->setDebugMode(FALSE); // enable for your remote IP
101-
$configurator->enableDebugger(__DIR__ . '/../log');
101+
$configurator->enableTracy(__DIR__ . '/../log');
102102
\--
103103

104104
Po obnovení stránky již Tracy neuvidíme. Místo ní se zobrazí uživatelsky přívětivá zpráva:

doc/en/configuring.texy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ We can pass any string by `$environment`, not only the `production` or `developm
6262
Development mode
6363
================
6464

65-
A little bit different thing is an application running mode. We can access a `production` server as a `developer` and we want activate a Tracy debugger. The running mode is distinguished by the same principle as environment above, by client's IP address. We get the mode by [isDebugMode() |api:Nette\Configurator::isDebugMode()] and set the mode by [setDebugMode() |api:Nette\Configurator::setDebugMode()]. It is useful when we enable debugger by [enableDebugger() |api:Nette\Configurator::enableDebugger()] which must be placed after the mode setting.
65+
A little bit different thing is an application running mode. We can access a `production` server as a `developer` and we want activate a Tracy debugger. The running mode is distinguished by the same principle as environment above, by client's IP address. We get the mode by [isDebugMode() |api:Nette\Configurator::isDebugMode()] and set the mode by [setDebugMode() |api:Nette\Configurator::setDebugMode()]. It is useful when we enable debugger by [enableTracy() |api:Nette\Configurator::enableTracy()] which must be placed after the mode setting.
6666

6767
/--php
6868
// activates Tracy debugger for listed IP adresses
@@ -72,7 +72,7 @@ $configurator->setDebugMode(); // = TRUE
7272
// or for no one
7373
$configurator->setDebugMode($configurator::NONE); // = FALSE
7474

75-
$configurator->enableDebugger(__DIR__ . '/../log');
75+
$configurator->enableTracy(__DIR__ . '/../log');
7676
\--
7777

7878

doc/en/presenters.texy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Activates [debugger and logger |tracy:] in strict mode:
111111

112112
/--php
113113
//$configurator->setDebugMode(TRUE);
114-
$configurator->enableDebugger(__DIR__ . '/../log');
114+
$configurator->enableTracy(__DIR__ . '/../log');
115115
\--
116116

117117
Setup directory for temporary files

doc/en/quickstart/getting-started.texy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ In the production mode, Tracy is, of course, disabled and does not reveal any se
9898
/--php
9999
// Enable Nette Debugger for error visualization & logging
100100
$configurator->setDebugMode(FALSE);
101-
$configurator->enableDebugger(__DIR__ . '/../log');
101+
$configurator->enableTracy(__DIR__ . '/../log');
102102
\--
103103

104104
After refreshing the web page, the red-screen page will be replaced with user-friendly message:

0 commit comments

Comments
 (0)