Thankfully this is easy to circumvent: have your debugger catch the ptrace syscall and lie about the result. Also, if antivirus programs haven't already added a signature for any programs that do that, they should.
Yeah, Apple iTunes did that IIRC, and it was super easy to bypass.
Cat + mouse: Have your program catch any signals/stops (which debuggers do on Linux when they attach I believe)