# Debugging an anonymous function passed to DynamicalSystems

**URL:** <https://discourse.julialang.org/t/debugging-an-anonymous-function-passed-to-dynamicalsystems/106890>\
**Category:** Modelling & Simulations\
**Tags:** question\
**Created:** [November 29, 2023, 9:57am UTC](https://discourse.julialang.org/t/debugging-an-anonymous-function-passed-to-dynamicalsystems/106890 "2023-11-29T09:57:38Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Datseris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datseris/32/13406_2.png) [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Post date:** [November 30, 2023, 10:04am UTC](https://discourse.julialang.org/t/debugging-an-anonymous-function-passed-to-dynamicalsystems/106890/6 "2023-11-30T10:04:11Z")

</div>

> [@Niall](#):
>
> However, to return to my original question, this cannot be the cause of the runtime error, can it? Because if I replace the current dynamical\_rule! by the one that is currently commented out (which also sets the value of `p[1]` to 0.3), CoupledODEs seems to be quite happy with it.

Yes, for that I would advise you to make a [**Minimal Working Example**](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757), that also includes explicitly the error message and the stacktrace, as the code you have pasted is unecessarily extensive and I can’t go through it at the moment.

---

_[View the full topic](https://discourse.julialang.org/t/debugging-an-anonymous-function-passed-to-dynamicalsystems/106890)._
