#PB_HTTP_Debug flag

Just starting out? Need help? Post your questions and find answers here.
doreonline
New User
New User
Posts: 3
Joined: Tue Jul 12, 2022 4:27 pm

#PB_HTTP_Debug flag

Post by doreonline »

"to print in the console debug information" (doc)

How can I see it? There is nothing in debug window, in console window.
doreonline
New User
New User
Posts: 3
Joined: Tue Jul 12, 2022 4:27 pm

Re: #PB_HTTP_Debug flag

Post by doreonline »

There is no answer to my question?
BarryG
Addict
Addict
Posts: 3266
Joined: Thu Apr 18, 2019 8:17 am

Re: #PB_HTTP_Debug flag

Post by BarryG »

I don't know which command uses that flag so I don't know the answer or understand your goal. Maybe post a snippet of code for us to see? That's the best way to get help so that we see the big picture of what you're trying to do.
doreonline
New User
New User
Posts: 3
Joined: Tue Jul 12, 2022 4:27 pm

Re: #PB_HTTP_Debug flag

Post by doreonline »

BarryG wrote: Thu Aug 18, 2022 7:04 am I don't know which command uses that flag
https://www.purebasic.com/documentation ... quest.html

The goal is to understand. I did not find any difference in operation with or without this flag
infratec
Always Here
Always Here
Posts: 6810
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: #PB_HTTP_Debug flag

Post by infratec »

It does what it is written.

Use this code:

Code: Select all

Request = HTTPRequest(#PB_HTTP_Get, "https://www.purebasic.fr", "", #PB_HTTP_Debug)
If Request
  FinishHTTP(Request)
EndIf

MessageRequester("Info", "Close this to terminate the program.")
And choose 'console' in compiler settings.
Then press F5 in the IDE.
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Re: #PB_HTTP_Debug flag

Post by Marc56us »

I've been looking for hours on how to use this flag (I read, re-read but misunderstood the help (console != Debug win), I'm getting old, my brain need update or WD40)
Console mode! yes!
Seeing the full HTTP dialog will greatly simplify my little command line programs.
Thank you infratec!
:D
Post Reply