|
-
May 21st, 2007, 11:16 PM
#1
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;
}
-
May 22nd, 2007, 04:21 AM
#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/
-
May 22nd, 2007, 07:43 PM
#3
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
-
July 2nd, 2007, 07:34 AM
#4
Re: Remote debugging
HI! were you able to find the solution for your problem? Can you remotely debug your console application?
-
July 2nd, 2007, 08:13 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|