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

Debug of a running server #123

Open
ArturPrzybysz opened this issue Sep 5, 2023 · 3 comments
Open

Debug of a running server #123

ArturPrzybysz opened this issue Sep 5, 2023 · 3 comments

Comments

@ArturPrzybysz
Copy link

I would like to use debugger into execution of the endpoint functions. I am using VS Code and default julia launch.json / F5 did not work. All I am able to look up is the execution before the server is running.

Is it possible to achieve what I am trying to do using standard tools?
How to?

@ndortega
Copy link
Member

Hi @ArturPrzybysz ,

You're absolutely right, I was able to replicate this issue on my own vscode editor. I've tried a couple of different variations of the launch.json config but didn't find anything that worked. Considering that all request handlers are just lambda's that are called on demand, It's not completely clear to me how to fix this.

I'll keep this open until we know whether a solution is possible or not.

@axla-io
Copy link

axla-io commented Jan 22, 2024

I don't know if this is an answer to you question, but I've found that Infiltrator.jl works great with Oxygen.jl to debug my programs.

@arlowhite
Copy link

arlowhite commented Sep 27, 2024

Same here; I know the debugger is working since breakpoints prior to serve() work. I also checked I have the compiled code feature off.

I did notice that when you run in parallel mode, Infiltrator doesn't work within @async, but Debugging Oxygen with built-in debugger doesn't work regardless of parallel mode.

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

4 participants