[NOT A BUG] Debug output window limitation ?

Just starting out? Need help? Post your questions and find answers here.
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

[NOT A BUG] Debug output window limitation ?

Post by boddhi »

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)
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...
tored
User
User
Posts: 90
Joined: Wed Feb 16, 2022 12:47 pm
Location: Sweden

Re: Debug output window limitation ?

Post by tored »

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. :shock:
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

Re: Debug output window limitation ?

Post by boddhi »

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. :shock:
While debugging, a SaveXXXX operation is often the best thing to do to make sure that what we're getting back is correct. :wink:
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...
User avatar
mk-soft
Always Here
Always Here
Posts: 6320
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Debug output window limitation ?

Post by mk-soft »

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
User avatar
spikey
Enthusiast
Enthusiast
Posts: 778
Joined: Wed Sep 22, 2010 1:17 pm
Location: United Kingdom

Re: Debug output window limitation ?

Post by spikey »

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").
BarryG
Addict
Addict
Posts: 4219
Joined: Thu Apr 18, 2019 8:17 am

Re: Debug output window limitation ?

Post by BarryG »

boddhi wrote: Wed Jun 19, 2024 12:38 amimposed by a technical constraint?
Yes -> https://www.purebasic.fr/english/viewto ... 90#p607990
boddhi
Enthusiast
Enthusiast
Posts: 524
Joined: Mon Nov 15, 2010 9:53 pm

Re: Debug output window limitation ?

Post by boddhi »

mk-soft wrote: The debug output has been limited with the current version.
OK, I'll take note.
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").
I know, I know; I refer to JSON just for the example. :wink:
Ok, now, there is an good reason. :wink:
I did search before posting, but I finally didn't use the right keywords. :mrgreen:

Thanks to all. :wink:
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...
tored
User
User
Posts: 90
Joined: Wed Feb 16, 2022 12:47 pm
Location: Sweden

Re: [NOT A BUG] Debug output window limitation ?

Post by tored »

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.
BarryG
Addict
Addict
Posts: 4219
Joined: Thu Apr 18, 2019 8:17 am

Re: [NOT A BUG] Debug output window limitation ?

Post by BarryG »

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"
Post Reply