You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Debugger, HTTP
@enter HTTP.get("http://geo.pkg.julialang.org/meta"; status_exception=false)
Debugging session:
julia>using Debugger, HTTP
@enter HTTP.get("http://geo.pkg.julialang.org/meta"; status_exception=false)
In #get#12(kw, , a) at /Users/sabae/.julia/dev/HTTP/src/HTTP.jl:389>389get(a...; kw...) =request("GET", a...; kw...)
About to run: (NamedTuple)()
1|debug> bp add request
[ Info: added breakpoint forfunction request
1] request
1|debug> c
HTTP.Messages.Response:"""HTTP/1.1 200 OKServer: nginx/1.17.9Date: Wed, 01 Apr 2020 00:21:26 GMTContent-Type: application/jsonContent-Length: 142Connection: keep-alive{"artifacts_cached": 97,"pkgserver_version": "0.1.0-59c61013465d37ee37f6318c07f26417c2548627","julia_version": "1.3.1","packages_cached": 511}"""
julia>
Excluding the status_exception=false kwarg causes the breakpoint to be successfully hit:
julia>using Debugger, HTTP
@enter HTTP.get("http://geo.pkg.julialang.org/meta")
In get(a) at /Users/sabae/.julia/dev/HTTP/src/HTTP.jl:389>389get(a...; kw...) =request("GET", a...; kw...)
About to run: (tuple)(Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}(), HTTP.get)
1|debug> bp
1] request
1|debug> c
Hit breakpoint:
In request(method, url) at /Users/sabae/.julia/dev/HTTP/src/HTTP.jl:314312functionrequest(method, url, h=Header[], b=nobody;
313 headers=h, body=b, query=nothing, kw...)::Response>314returnrequest(HTTP.stack(;kw...), string(method), request_uri(url, query), mkheaders(headers), body; kw...)
315end
About to run: (getindex)(Pair{SubString{String},SubString{String}})
1|debug>
I will note that during this process, I run into #246 pretty often.
The text was updated successfully, but these errors were encountered:
Example:
Debugging session:
Excluding the
status_exception=false
kwarg causes the breakpoint to be successfully hit:I will note that during this process, I run into #246 pretty often.
The text was updated successfully, but these errors were encountered: