3 ms·
Debugging Linux pipelines is not a fun experience. This is one clear area where Powershell with its object model has got it right.
by nojito 6y ago
Debugging Linux pipelines is not a fun experience.
This is one clear area where Powershell with its object model has got it right.
- jandrese 6y agoI don't find it too bad most of the time. If the pipeline isn't working you can cut it off at any juncture and watch standard out to see whats going on. You can even redirect some half processed data to a file so you don't have to re-run the first half of the pipe over and over while you work out what's going wrong in the tail end.
- pwdisswordfish2 6y agoPlease provide an example. Thank you.
- fomine3 6y agoPowerShell supports breakpoint. https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/set-psbreakpoint?view=powershell-7 https://docs.microsoft.com/en-us/powershell/module/microsoft...
- pwdisswordfish2 6y agoCan you give a working example? This way you can watch a UNIX user "struggle/fail" as they "attempt" to debug a script using set -x, set -e, $?, LINENO, utilties like ktrace, strace, recordio, etc. and your argument will be taken seriously.
- pjmlp 6y agoSome people also insist to keep debuging with printf(), whereas the rest of the world is happily using InteliJ and friends.
- pwdisswordfish2 6y agoI just use gdb and ald. I heard IntelliJ is a memory hog and requires a powerful computer.
- pjmlp 6y agoInteliJ isn't the only option, hence why I mentioned "and friend".