Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger::$maxLen not working #114

Closed
matak opened this issue Jun 28, 2015 · 8 comments
Closed

Debugger::$maxLen not working #114

matak opened this issue Jun 28, 2015 · 8 comments

Comments

@matak
Copy link

matak commented Jun 28, 2015

If I set maxLen=1000 still truncate is set to 150.

"SELECT products.ids as ids,products.type as type,products.sku as sku,products.EAN as EAN,products.producer_id as `produce ... " (1699)

Maybe the problem is here

https://github.com/nette/tracy/blob/master/src/Tracy/assets/BlueScreen/bluescreen.phtml#L136

that no options of truncate is set.

@JanTvrdik
Copy link
Contributor

That is feature. That being said – it may currently not be obvious for programmer to see what is affected by some options and what is not.

@dg
Copy link
Member

dg commented Jun 28, 2015

It affects only function dump()

@JanTvrdik
Copy link
Contributor

More precisely it affects Debugger::dump() and Debugger::barDump(). Dumper::dump() + others are unaffected. Changing Bluescreen options is currently not possible. Not sure whether that is intentional or it was just considered unnecessary.

@matak
Copy link
Author

matak commented Jun 28, 2015

So how you debug longer strings if i can not see them?

@dg
Copy link
Member

dg commented Jun 28, 2015

If I needed to debug longer strings, I would have to implement it, probably in BlueScreen class.

@matak
Copy link
Author

matak commented Jun 29, 2015

sorry for my english

If I needed - means that you suggest me to implement it? or you want to tell me that there is no need to implement it?

if i implemented and nobody is interested to add my pull request so it would not help me

@dg
Copy link
Member

dg commented Jun 29, 2015

Jak ladíte delší řetězce, pokud je nemohu vidět?

(Nijak.) Kdybych to potřeboval, musel bych si to naimplementovat, asi do třídy BlueScreen.

Of course, you can implement it.

@nechutny
Copy link

nechutny commented Mar 4, 2016

I 've found same "bug". When I 'm debugging some SQL i want to view them full. Tried to set Debugger::$maxLen to bigger size, but no success. It's not only dump() function, but also function arguments at blue screen. I think, that expected behaviour is using $maxLen. So we can change src/Tracy/Dumper.php line 93 from hardcoded value (ugly!) to something like Debugger::$maxLen. I can prepare PR for this.

@dg dg closed this as completed in e79e3dd Jun 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants