CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2004
    Posts
    202

    Remote debugging

    Hi
    I have remote debugging setup on my debugging computer and the target computer. The debugging computer has VC2005 installed, and I run my code from here. The target computer is where I wanna run my code at. I mapped C and D drive in my debugging computer to the target computer..so from target computer i can see C and D Drive of the debugging computer.

    I remote debugged an MFC application, and it ran fine..however, I tried to run this win32console application, it doesn't run. I even tried remote debugging with a simple HelloWorld win32console, but it doesn't work. So I went to the target computer, and run HelloWorld.exe that's compiled in Debug setting from there, it doesn't start up. The error says "The application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem". However, if I compile HelloWorld in Release, I can run it (basically double clicking the HelloWorld.exe) from the remote computer. What should I do to be able to remote debug a win32console application ?

    Thanks


    here's my helloworld program, in case u wanna make sure I didn't do anything wrong

    #include "stdafx.h"

    int main(int argc, char* argv[])
    {
    int n;
    printf("Hello\n");
    scanf("%d",&n);
    return 0;
    }

  2. #2

    Re: Remote debugging

    You need set the remote debug env on your debug machine.
    Best Api Monitor tool.
    Trace the target program automatically and monitor the parameters of all API and COM interfaces.

    Auto Debug for Windows 4.0
    Auto Debug for .Net
    http://www.autodebug.com/

  3. #3
    Join Date
    Aug 2004
    Posts
    202

    Re: Remote debugging

    How? Please advise.

    In VC++ I already set the path to the executable, and working directory as seen by the remote computer. I have msvsmon.exe run on the remote computer.

    I suspect I might miss some dll that needs to run HelloWorld.exe, and if that's true, how do I know what dll I miss? (copied all the dll that's linked when compiling to the remote compute, but it still doesn't work)

    Thanks

  4. #4
    Join Date
    Mar 2007
    Posts
    238

    Re: Remote debugging

    HI! were you able to find the solution for your problem? Can you remotely debug your console application?

  5. #5
    Join Date
    Apr 2003
    Location
    kathmandu, nepal
    Posts
    1,570

    Re: Remote debugging

    See the following links it might help you:

    Link1

    Link2
    If there is no love sun won't shine

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured