Skip to content
Discussion options

You must be logged in to vote

Thanks for asking the question @rturrado! Generally my workflow will depend on what kind of code I'm debugging, and what kind of example I'm running.

  • I think debugging Python code launched from a Python example is pretty self explanatory, since Python makes this quite easy on us, and it should also integrate straight forwardly with IDEs (I cannot speak to jetbrain tools though since I use vs code myself).

  • Debugging C++ code from a C++ binary (like the quantum-opt tool) is also relatively straightforward.

    The first step is building the relevant code in DEBUG mode. So for example using our make targets you can do make dialects BUILD_TYPE=Debug, or make runtime BUILD_TYPE=Debug. Note tha…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@dime10
Comment options

@sengthai
Comment options

Comment options

You must be logged in to vote
3 replies
@rturrado
Comment options

@dime10
Comment options

@rturrado
Comment options

Answer selected by rturrado
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants