Skip to content

Debugger runs fine once. When I use it again, it seems to be stuck in a loop #3688

@arvedjo

Description

@arvedjo

Hi,
I have a strange behaviour on the newest vscode extension. When I run the debugger once, like:

function test()
    a = 1 + 1
    return a
end
@run println(test())

Everything works fine. When I run it again, it shows Julia:Evaluating... for ages until I restart the repl. Then I can run it again once more.
Any idea?
Thanks
Arved

P.S. When I ctrl+c end the execution in the repl this is the error I am getting

stacktrace:
 [1] try_yieldto(undo::typeof(Base.ensure_rescheduled))
   @ Base .\task.jl:945
 [2] wait()
   @ Base .\task.jl:1009
 [3] wait(c::Base.GenericCondition{ReentrantLock}; first::Bool)
   @ Base .\condition.jl:130
 [4] wait
   @ .\condition.jl:125 [inlined]
 [5] take_buffered(c::Channel{VSCodeServer.DebugAdapter.DebugSession})
   @ Base .\channels.jl:477
 [6] take!(c::Channel{VSCodeServer.DebugAdapter.DebugSession})
   @ Base .\channels.jl:471
 [7] macro expansion
   @ c:\Users\arved\.vscode\extensions\julialang.language-julia-1.121.1\scripts\packages\VSCodeServer\src\debugger.jl:106 [inlined]
 [8] top-level scope
   @ c:\Users\arved\.julia\dev\Gridap_Tryout\src\test4.jl:5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions