Skip to content
Advertisement

debug wget command with gdb

I want to debug wget with a special url.

So how to pass the url to gdb? I already tried with --args <the url>, but it dosen’t work.

Please help me.

ps: I used gdb in the wrong way gdb wget --args http://www.google.com/, it should be gdb --args wget http://www.google.com/

Advertisement

Answer

This should work:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement