You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has anyone worked out how to run and debug the piped series of executables in an IDE? Perhaps it can be done by writing a wrapper main to test by calling all the function inside?
The text was updated successfully, but these errors were encountered:
Ok so I forgot to post this, but I have a solution, for any xcode users, and probably a similar thing can be done with VS.
Xcode project generated using: #5
You can tell xcode (or whatever) to wait until the the executable launches, by doing something like
If you then in the terminal execute ./make_world 10 0.1 | ./step_world 0.1 100,
Xcode will see the executable step_world executable running and then latches the debugger onto it, assuming you have a breakpoint.
However you need raise(SIGSTOP); #include <signal.h> right inside main otherwise the process terminates before xcode gets a chance to hook in,
Perhaps a single wrapper main target might be still a better solution, but in the meantime this seems to work, at least for running the examples, I dont know how well it will hold up when we actually start to changing things
Has anyone worked out how to run and debug the piped series of executables in an IDE? Perhaps it can be done by writing a wrapper main to test by calling all the function inside?
The text was updated successfully, but these errors were encountered: