-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Debugging usage #7
Comments
After giving this some thought, the correct place for a solution may in fact be in We already use an environment variable (or constant) |
I'm not sure if |
@rybakit mind to share you configuration? Because I can't it get working. Whenever the breakpoint is in a function executed by the worker in another process the breakpoint is never hit |
I've just thought about it: @rybakit is kinda right. What is not working is a breakpoint inside the payload: I think it's because the function is serialiazed/unserialized it's no longer able to pick up where it's coming from :/ |
@theofidry Correct. You can implement a |
Wouldn't it be easier then to simply call the callable in As the main point here is to not serialize, if we were to try to use the works & co. still it means creating a new task & context to execute the task within the same process. That's a non-negligeable amount of work and I'm not sure there's any benefit in it. The point of this debugging mode is more being able to debug the callable not execute the whole amphp toolchain |
Yes, that's definitely easier. |
Moving my question from box-project/box#53 (comment) to here.
I think it would be good if it would be possible to easily switch from
parallelMap()
to a plain oldarray_map()
, be it for debugging purposes or simply because in a special caseparallelMap()
is not working e.g. when the passed argument is not serializable.Maybe an env variable would work, the inconvenient being it's gonna rely on global state, the benefit is would be easier and won't require much changes.
On the same token, the major downside I have with this library is the inability to use break points for the paralellised work. Would make it work?
If you have some insight regarding this that would be greatly appreciated, otherwise I'll try to give it a stab in the coming months :)
The text was updated successfully, but these errors were encountered: