-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 OpenVINO and OpenVINO Python bindings using VS Code #23122
Comments
.take |
Thank you for looking into this issue! Please let us know if you have any questions or require any help. |
Hello @sanbuphy, is there anything we could help you with? |
Don't worry! i'm still wrting the article, (in cn we work too busy so it looks slow,but i will try to create a draft pull request this week :) |
Hi wysocki,Could you tell me where should i create the PR about how to debug python and c++ code in openvino? |
Question has been answered in Discord, I apologize for missing your question here. :) |
That's OK, got it; Thank you. I am currently writing this tutorial but I've encountered a problem. I would like to ask: |
I think we should stick to debugging the Python bindings themselves, because op definitions and so on are usually tested natively in C++, especially that in the bindings tests for operators we only run shape inference and type propagation, but no actual data calculations.
I think that any non-trivial binding (I mean one that has enough lines that there's actually something to check) can be an example. You can choose any binding from openvino/src/bindings/python/src/pyopenvino/core/core.cpp Lines 210 to 216 in 59c54cb
@jiwaszki @akuporos what do you think? Do you have an idea of what we would like that guide to look like? |
Thanks ! get it , and i also want to write the guide how to debug op definitions in c++ test file (The debug guide will include common situation in vino debugging) But i have another question : how can i see the c++ variable inside in vscode ? it will looks like : |
Context
Many beginners struggle with not knowing how to debug the internal code and its corresponding binding code, and they lack a fast and best practice reference, which makes it difficult for them to get started. Therefore, we need a well-documented process that covers using VS Code to debug the source code, reproduce issues, and perform testing.
What needs to be done?
Provide a documentation on compiling OpenVINO using VS Code in a Linux environment.
Provide documentation on using VS Code to debug OpenVINO C++ and Python components.
Example Pull Requests
No response
Resources
Contact points
@p-wysocki
Ticket
No response
The text was updated successfully, but these errors were encountered: