Skip to content

Commit 60ea9f0

Browse files
committed
enableDebugger() -> enableTracy()
1 parent 405c591 commit 60ea9f0

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

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

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

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:

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

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

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:

wip/book/cs/book/start.texy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Debug mód lze natvrdo zapnout či vypnout (např. pro zapnutí debug módu lok
9191
/--php
9292
$configurator->setDebugMode(FALSE); // <- tento řádek je klíčový, vypne debug i lokálně
9393
//$configurator->setDebugMode(['93.184.216.119', '2606:2800:220:6d:26bf:1447:1097:aa7']); // <- tento řádek zapne debug pouze pro dané IP adresy
94-
$configurator->enableDebugger(__DIR__ . '/../log');
94+
$configurator->enableTracy(__DIR__ . '/../log');
9595
\--
9696

9797
V produkčním módu je potom červená obrazovka nahrazená uživatelsky srozumitelnou zprávou (můžete to sami zkusit úpravou `bootstrap.php` a znovunačtením):

wip/book/en/book/start.texy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ You can disable or enable mode by hand (for example for turning debug mode local
8686
/--php
8787
$configurator->setDebugMode(FALSE); // <- this is the key line - disable debug even locally
8888
//$configurator->setDebugMode(['93.184.216.119', '2606:2800:220:6d:26bf:1447:1097:aa7']); // <- this enables debug mode only on given IPs
89-
$configurator->enableDebugger(__DIR__ . '/../log');
89+
$configurator->enableTracy(__DIR__ . '/../log');
9090
\--
9191

9292
In production mode, red-screen page will be replaced with user-friendly message (you can try it out yourself by editing `bootstrap.php` and refreshing):

0 commit comments

Comments
 (0)