Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger.jl halted on the line of JSON.parse() #243

Closed
zhangliye opened this issue Feb 22, 2020 · 3 comments
Closed

Debugger.jl halted on the line of JSON.parse() #243

zhangliye opened this issue Feb 22, 2020 · 3 comments

Comments

@zhangliye
Copy link

zhangliye commented Feb 22, 2020

I tested Debugger using Julia1.3 and Julia 1.2. I use command n to debug line by line. When it encounter the line using JSON.jl package. Debugger.jl running a long time and halted there, and can not go to the next line. The demo code is as follows.

`
using JSON

function f()
f_path = raw"C:\test.json"
txt = read( f_path , String )
vessel_char = JSON.parse( txt ) ## stopped here, and vs code has no response

return c

end

d = f()
`

@KristofferC
Copy link
Member

The debugger is very slow How big is the JSON file? What happens if you try with a small file?

@zhangliye
Copy link
Author

zhangliye commented Feb 24, 2020

When I use the compiled mode of the debugger.jl, it can pass through. The file is very small about several kb and I found a lot of people talked about the speed. If I use interpreted mode, the laptop keeps running and halted there.

@KristofferC
Copy link
Member

I found a lot of people talked about the speed.

The speed of what? The debugger backend is very slow. Anyway, this seems to be expected. Ref JuliaDebug/JuliaInterpreter.jl#206

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants