Since version PB 6.03, there seems to be a limitation in the possibility of displaying content in one shot in the debug output window.
As an example, with 6.02, after an HTTP request, I retrieve an unformatted JSON string of 145402 characters.
A ComposeJSON(#JSON,#PB_JSON_PrettyPrint) produces a string of 451290 characters with 7609 lines displayed without any problem with Debug.
With versions beyond it, Debug only displays 257722 characters with 4356 lines.
Is this limitation since 6.03 deliberate? imposed by a technical constraint? or is it abnormal?
Thanks.
// Moved from "Bugs - IDE" to "Coding Questions" (Kiffi)
[NOT A BUG] Debug output window limitation ?
[NOT A BUG] Debug output window limitation ?
Last edited by boddhi on Wed Jun 19, 2024 10:30 am, edited 1 time in total.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Except on this sentence...
Re: Debug output window limitation ?
Spent some time on this one, wondered why my downloaded file was only half of what it should be. Lot of debugging on the downloading code before realising it was the debug output that truncated my file. 
Re: Debug output window limitation ?
While debugging, a SaveXXXX operation is often the best thing to do to make sure that what we're getting back is correct.tored wrote: Spent some time on this one, wondered why my downloaded file was only half of what it should be. Lot of debugging on the downloading code before realising it was the debug output that truncated my file.![]()
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Except on this sentence...
Re: Debug output window limitation ?
The debug output has been limited with the current version.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Debug output window limitation ?
Don't forget that the 'Library Viewer' can display JSON in full, XML too. It can be called inline to a specific target with ShowLibraryViewer("JSON").
Re: Debug output window limitation ?
OK, I'll take note.mk-soft wrote: The debug output has been limited with the current version.
I know, I know; I refer to JSON just for the example.spikey wrote: Don't forget that the 'Library Viewer' can display JSON in full, XML too. It can be called inline to a specific target with ShowLibraryViewer("JSON").
Ok, now, there is an good reason.BarryG wrote: Yes -> https://www.purebasic.fr/english/viewto ... 90#p607990
I did search before posting, but I finally didn't use the right keywords.
Thanks to all.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Except on this sentence...
Re: [NOT A BUG] Debug output window limitation ?
Fred, would it be possible to indicate the the output in the debug window have been truncated? Like three dots ... appended to the end or something similar.
Re: [NOT A BUG] Debug output window limitation ?
No point because you can't scroll to the right of the debug output to see the 3 dots if they were there:
Code: Select all
Debug "start"+Space(2000000)+"end"


