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 step through a wrapped generated function? #18

Open
wangyunyueyueniao opened this issue Jun 18, 2024 · 1 comment
Open

How to step through a wrapped generated function? #18

wangyunyueyueniao opened this issue Jun 18, 2024 · 1 comment
Labels
question Further information is requested

Comments

@wangyunyueyueniao
Copy link

When an ODEProblem is solved, it seems that a wrapped generated function is called during the initialize process. So my question is: how to step through the wrapped generated function so that it can be debugged. Is there any best practices? How to export the source code of the wrapped function from the pointer?

@wangyunyueyueniao wangyunyueyueniao added the question Further information is requested label Jun 18, 2024
@chriselrod
Copy link
Collaborator

If you have a FunctionWrappersWrapper object, you cannot. That information has been lost.

You can try either

  1. Force full specialization, that way it doesn't use a FunctionWrappersWrapper. See here for more information.
  2. Keep the f you passed around. Save the arguments that are passed to the FunctionWrappersWrapper, exit the debugger, and then step into your f manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants