Thread: Debugging while running from an external executable

  1. #1
    Registered User
    Join Date
    Oct 2010

    Debugging while running from an external executable

    Our assignment is to create a program which runs from a server which calls our .exe.

    This means I can't "Build and debug". I build the .exe and then run the server .exe from a command window, and give it my .exe name.

    Would there be any way to run both from within VS, and Debug my C code?

  2. #2
    Registered User
    Join Date
    Dec 2006
    You can attach debugger to running processes (assuming the server .exe spawns a process to run your .exe). I don't know how to do it with VS, though.

  3. #3
    Join Date
    Jul 2009
    Never done it, but why don't you try Debug >> Attach to Process

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 04-10-2009, 12:57 AM
  2. Loading a DLL that is not in the same directory as the executable
    By starcatcher in forum Windows Programming
    Replies: 10
    Last Post: 12-13-2008, 07:05 AM
  3. beginner attempting to compile hello world. having problems
    By MegaManZZ in forum C++ Programming
    Replies: 13
    Last Post: 12-03-2007, 04:21 PM
  4. Installing Direct X
    By bumfluff in forum Game Programming
    Replies: 36
    Last Post: 11-15-2006, 07:18 PM
  5. Running external programs
    By speedy in forum C++ Programming
    Replies: 3
    Last Post: 10-26-2001, 05:50 PM