Answer a question

When I use Visual Studio code to debug a Julia file, it hangs on the "using Revise" statement. No debugging button seems to do anything, except the stop button. Does anyone know of a solution?

using Revise

println("Hello")

vscode screenshot

Answers

I finally got it working. In vs-code there is a bright blue bar at the bottom. Clicking Julia env: and changing it from v1.5 to JulaiPro_v1.5.2-1 fixed everything.

It has something to do with:

julia> Base.load_path()
3-element Array{String,1}:
 "C:\\Users\\<user>\\.julia\\environments\\JuliaPro_v1.5.2-1\\Project.toml"
 "C:\\Users\\<user>\\.julia\\environments\\v1.5\\Project.toml"
 "C:\\Users\\<user>\\AppData\\Local\\JuliaPro-1.5.2-1\\Julia-1.5.2\\share\\julia\\stdlib\\v1.5"

The v1.5 path didn't exist.

Logo

开发云社区提供前沿行业资讯和优质的学习知识,同时提供优质稳定、价格优惠的云主机、数据库、网络、云储存等云服务产品

更多推荐