On Tue, 23 May 2017, T Lee Davidson wrote:
> Hello folks,
> 
> I am trying to see if gb.debug will help me diagnose why HttpClient does not 
> properly expose redirect response codes on my 
> system (and reportedly Tobi's system) while it does so correctly on Benoît's 
> system.
> 
> However, the documentation for gb.debug is so sparse that I am having to 
> experiment and, of course, having a problem.
> 
> With the following command-line application code (using the gb.debug 
> component):
> ' Gambas module file
> 
> Public Sub Main()
> 
>    Dim sName As String
> 
>    sName = Debug.Begin()
>    Print sName
>    Debug.Start ' Unable to open fifo
>    Debug.Write("Hello world")
>    Debug.Stop
>    Debug.End
> 
> End
> 
> Public Sub Debug_Read(Data As String)
> 
>    Print Data
> 
> End
> ' End Gambas module file
> 
> Debug.Start causes an exception: "Unable to open fifo". By looking in 
> /tmp/gambas.1000/, I can see that the process id input and 
> output pipes are successfully created with the correct file mode permissions 
> (600) for my user as owner. But, the Start 
> procedure apparently cannot open the output fifo (ref. 
> https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/main/lib/debug/CDebug.c).
> 
> Am I attempting to use this component incorrectly?
> 

I think you're attempting to use the wrong component. gb.debug is meant for
the Gambas IDE to debug a Gambas project. You can look at the source code of
the IDE to try to figure out how to use it. I don't understand its protocol
at all. My wild guess is that your error comes from not having started the
application in debug mode (gbx3 -g)?

In any case, I doubt debugging your *Gambas* code will give you any insight
into the gb.net.curl issue, as gb.net.curl and curl itself are not written
in Gambas.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to