Skip to content

Commit

Permalink
IHF: Moved backtrace methods to separate debug file.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ivanov committed Feb 17, 2017
1 parent cfc94be commit bcc23bb
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,32 @@ $hostname = db_mysql_variable('hostname');
// localhost
```

## Debug

#### `backtrace_as_string()`

Returns backtrace without arguments as string:

```php
$backtrace = backtrace_as_string();
#0 backtrace_as_string() called at [/htdocs/example/routes/web.php:15]
#1 Illuminate\Routing\Router->{closure}() called at [/htdocs/example/vendor/laravel/framework/src/Illuminate/Routing/Route.php:189]
#2 Illuminate\Foundation\Http\Kernel->handle() called at [/htdocs/example/public/index.php:53]
```

#### `minimized_backtrace_as_string()`

Returns minimized backtrace as string:

```php
$backtrace = minimized_backtrace_as_string();
#0 /htdocs/example/routes/web.php:15
#1 /htdocs/example/vendor/laravel/framework/src/Illuminate/Routing/Route.php:189
#2 /htdocs/example/public/index.php:53
```

## Email

#### `is_email()`
Expand Down Expand Up @@ -254,30 +280,6 @@ $formatted = format_xml('<?xml version="1.0"?><root><task priority="low"><to>Joh
// </root>
```
#### `backtrace_as_string()`
Returns backtrace without arguments as string:
```php
$backtrace = backtrace_as_string();
#0 backtrace_as_string() called at [/htdocs/example/routes/web.php:15]
#1 Illuminate\Routing\Router->{closure}() called at [/htdocs/example/vendor/laravel/framework/src/Illuminate/Routing/Route.php:189]
#2 Illuminate\Foundation\Http\Kernel->handle() called at [/htdocs/example/public/index.php:53]
```
#### `minimized_backtrace_as_string()`
Returns minimized backtrace as string:
```php
$backtrace = minimized_backtrace_as_string();
#0 /htdocs/example/routes/web.php:15
#1 /htdocs/example/vendor/laravel/framework/src/Illuminate/Routing/Route.php:189
#2 /htdocs/example/public/index.php:53
```
## Json
#### `is_json()`
Expand Down

0 comments on commit bcc23bb

Please sign in to comment.