One more thing I've came across in linux is debugging.
Had to implement an application that is separate in two modules: exe and dll. Ok, build scripts put both of those to one directory, but if you just start exe, then linux will not find corresponding dll.
Spent for about a day or two before found a following (and currently the best) solution for myself.
/lib/ld-linux.so.2 --library-path [path_to_library] [executable_name]Works pretty nice.
Other issue was to get error stream output. Found a bit easier: somewhere in wiki.
[exec_name] 2>&1This moves error stream to output stream. Quite handy thing for debugging.
Useful notes that you can use in you everyday programmers life. Pretty much "How to" page
понедельник, 18 апреля 2011 г.
Bash & debugging
Подписаться на:
Комментарии к сообщению (Atom)
Комментариев нет:
Отправить комментарий