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

Error only while using the debugger in VSCode #574

Closed
sophia-wright-blue opened this issue Jul 19, 2023 · 9 comments · Fixed by #581
Closed

Error only while using the debugger in VSCode #574

sophia-wright-blue opened this issue Jul 19, 2023 · 9 comments · Fixed by #581

Comments

@sophia-wright-blue
Copy link

hello - I'm able to run a script in VSCode, but get an error only while using the VSCode debugger - I have shared the details along with a reproducer on the Julia VSCode extension repo here:

julia-vscode/julia-vscode#3349

and one of the contributors was kind enough to look into the error and has ID'ed the root cause as an issue with JuliaInterpreter - the stack trace of the error are in the comment here:

julia-vscode/julia-vscode#3349 (comment)

it'd help us out greatly if we could get some feedback on resolving the issue - thank you so much!

@timholy
Copy link
Member

timholy commented Aug 11, 2023

Sorry this took so long to fix. New version coming: JuliaRegistries/General#89435

@sophia-wright-blue
Copy link
Author

thank you so much - I'll test this right away

@timholy
Copy link
Member

timholy commented Aug 11, 2023

You may want to use A of smaller size (e.g., 128x128), the interpreter is slow.

@sophia-wright-blue
Copy link
Author

hello @timholy - quick update on this - the julia-vscode extension has been updaed to use a recent version the Interpreter and the issue has been resolved - thank you so much for your help!

@timholy
Copy link
Member

timholy commented Aug 29, 2023

Thanks for the feedback, that means a lot!

@sophia-wright-blue
Copy link
Author

absolutely - one final question for you - you mentioned that the interpreter is slow - I'm finding the difference to be many orders of magnitude: 10 min while debugging vs 30 seconds to run the same script normally - is there any way to improve on that time?

@timholy
Copy link
Member

timholy commented Aug 29, 2023

Someday, yes, but a game-changing improvement in performance can't happen until a ton of engineering work gets done first. Julia is a difficult language to interpret efficiently, in part because so much of Julia is written in Julia. (It's pretty easy to interpret call_C_because_I_cant_do_anything_fast(args...) 😉.)

One trick, though, is that any slow operations that you don't need to step into could be run in "compiled" mode. There are some threads on discourse about this.

@sophia-wright-blue
Copy link
Author

perfect - I'll go throught the threads on Discourse - thank you so much again!

@pfitzseb
Copy link
Member

There's also a bit of documentation here.

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

Successfully merging a pull request may close this issue.

3 participants