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

How to debug code inside the RPC server #270

Open
oren0e opened this issue Dec 24, 2024 · 5 comments
Open

How to debug code inside the RPC server #270

oren0e opened this issue Dec 24, 2024 · 5 comments

Comments

@oren0e
Copy link

oren0e commented Dec 24, 2024

Hi,
I would like a way to "attach" to the rpc server and be able to step through the code that is being run by it in a debugger. How can I do that? Currently the code that runs in the RPC server is kind of a black box to me and this makes it hard to debug problems.

Thanks in advance.

@bombela
Copy link
Member

bombela commented Dec 24, 2024 via email

@oren0e
Copy link
Author

oren0e commented Dec 24, 2024

@bombela I know, I have tried to debug with pdb (the normal debugger I usually use) but the problem is that eventually you get to a .call() method or something like that for the rpc server and that's it.

@bombela
Copy link
Member

bombela commented Dec 31, 2024 via email

@oren0e
Copy link
Author

oren0e commented Jan 1, 2025

@bombela of course. The setup is that on the same server there is a code that executes and then calls to the rpc server which is on the same server, just a different process on a different port. My question is how to attach to that port and be able to debug properly.

@bombela
Copy link
Member

bombela commented Jan 2, 2025 via email

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