# debug backtrace improvement

- Thread: https://externals.io/message/51272
- Original archive: https://news-web.php.net/php.internals/51272
- Started by Stas Malyshev on 2011-01-14T21:47:42+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #51272 — Stas Malyshev — 2011-01-14T21:47:42+00:00

URL: https://externals.io/message/51272#51272

Hi!

I have a proposal for backtrace improvement: 
http://wiki.php.net/rfc/debugoptions
Short version: to add option to it that allows to suppress 
printing/including arguments, because sometimes the traces with args 
become unmanageable and args are rarely as important as the rest of the 
info.

Comments?
-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

---

## #51273 — Derick Rethans — 2011-01-14T21:54:43+00:00

URL: https://externals.io/message/51272#51273 · In reply to: #51272

> I have a proposal for backtrace improvement:
> http://wiki.php.net/rfc/debugoptions
> Short version: to add option to it that allows to suppress printing/including
> arguments, because sometimes the traces with args become unmanageable and args
> are rarely as important as the rest of the info.
> 
> Comments?

I'm all for the option, but instead of having one positive 
(PROVIDE_OBJECT) and the one negative (IGNORE_ARGS) "option" I would 
suggest to have to positive ones:

PROVIDE_OBJECTS (I also pluralised it to be the same)
PROVIDE_ARGS

and then with the default value of course being 0x03.

cheers,
Derick

---

## #51274 — Stas Malyshev — 2011-01-14T21:56:08+00:00

URL: https://externals.io/message/51272#51274 · In reply to: #51273

Hi!

> I'm all for the option, but instead of having one positive
> (PROVIDE_OBJECT) and the one negative (IGNORE_ARGS) "option" I would
> suggest to have to positive ones:
>
> PROVIDE_OBJECTS (I also pluralised it to be the same)
> PROVIDE_ARGS

The problem with it would be that debug_backtrace(true|false) won't work 
as before.

-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

---

## #51275 — Derick Rethans — 2011-01-14T22:07:21+00:00

URL: https://externals.io/message/51272#51275 · In reply to: #51274

> > […]
> 
> The problem with it would be that debug_backtrace(true|false) won't work as
> before.

Ah, right. Still ugly :-) But not as bad as overloading to see whether 
there is a bool or an int.

cheers,
Derick

---

## #51276 — Stas Malyshev — 2011-01-14T22:25:03+00:00

URL: https://externals.io/message/51272#51276 · In reply to: #51275

Hi!

> Ah, right. Still ugly :-) But not as bad as overloading to see whether
> there is a bool or an int.

I wouldn't mind breaking this bit of BC in 5.4, but I'd like to have it 
in 5.3 and don't want to break too much.
-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227
