473,378 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

debug on client's computer (without debugger?)

I have a VC++ application that just crashes on one tester/client's machine.
It runs fine everywhere else.

What are the other options to debug (on the client's machine) without
installing VC++ (on the clinet's machine)? Is this possible at all? Thanks.

WJ
Apr 11 '08 #1
20 2596
To add some more details, this is a managed-unmanaged mixed application, not
a pure managed C++ application.

Thanks.

WJ

"WJ" wrote:
I have a VC++ application that just crashes on one tester/client's machine.
It runs fine everywhere else.

What are the other options to debug (on the client's machine) without
installing VC++ (on the clinet's machine)? Is this possible at all? Thanks.

WJ
Apr 11 '08 #2
WJ wrote:
To add some more details, this is a managed-unmanaged mixed
application, not a pure managed C++ application.

Thanks.

WJ

"WJ" wrote:
>I have a VC++ application that just crashes on one tester/client's
machine. It runs fine everywhere else.

What are the other options to debug (on the client's machine) without
installing VC++ (on the clinet's machine)? Is this possible at all?
Thanks.

WJ
1st: Deploy your application with .pdb information.

2nd: Install a debugger who can understand a .pdb file like WinDbg (Debugging
tools for Windows, freeware, 16/20Mb,
http://www.microsoft.com/whdc/devtoo...g/default.mspx) or IDA Pro
(http://www.hex-rays.com/idapro/)

3rd: Run you application under the debugger.

Regards

--
Cholo Lennon
Bs.As.
ARG

Apr 11 '08 #3
Where should the .pdb files be installed? Thanks!

"Cholo Lennon" wrote:
WJ wrote:
To add some more details, this is a managed-unmanaged mixed
application, not a pure managed C++ application.

Thanks.

WJ

"WJ" wrote:
I have a VC++ application that just crashes on one tester/client's
machine. It runs fine everywhere else.

What are the other options to debug (on the client's machine) without
installing VC++ (on the clinet's machine)? Is this possible at all?
Thanks.

WJ

1st: Deploy your application with .pdb information.

2nd: Install a debugger who can understand a .pdb file like WinDbg (Debugging
tools for Windows, freeware, 16/20Mb,
http://www.microsoft.com/whdc/devtoo...g/default.mspx) or IDA Pro
(http://www.hex-rays.com/idapro/)

3rd: Run you application under the debugger.

Regards

--
Cholo Lennon
Bs.As.
ARG

Apr 11 '08 #4
>I have a VC++ application that just crashes on one tester/client's machine.
>It runs fine everywhere else.

What are the other options to debug (on the client's machine) without
installing VC++ (on the clinet's machine)? Is this possible at all? Thanks.
Use the remote debugger - in later versions of VS you can run the
remote debugger on the client computer from a share on your dev
machine. In earlier versions it requires a minimal install of the
remote debugger component.

Dave
Apr 11 '08 #5
WJ wrote:
Where should the .pdb files be installed? Thanks!
Usually in the same directory of your executable. Some debuggers allow you to
load the pdb file from a custom location.

--
Cholo Lennon
Bs.As.
ARG

Apr 11 '08 #6
Hi Cholo,
Do you know if WinDBG supports managed-unmanaged mixed applications? I have
troulbe to get the symbol files loaded.

Thanks.

WJ

"Cholo Lennon" wrote:
WJ wrote:
Where should the .pdb files be installed? Thanks!

Usually in the same directory of your executable. Some debuggers allow you to
load the pdb file from a custom location.

--
Cholo Lennon
Bs.As.
ARG

Apr 11 '08 #7
WJ wrote:
Hi Cholo,
Do you know if WinDBG supports managed-unmanaged mixed applications?
I have troulbe to get the symbol files loaded.
AFAIK yes. Maybe you need SOS.dll. Take a look to:

"SOS: It's Not Just an ABBA Song Anymore"
http://msdn2.microsoft.com/es-ar/mag...38(en-us).aspx

"SOS Debugging Extension (SOS.dll)"
http://msdn2.microsoft.com/en-us/lib...64(VS.80).aspx

--
Cholo Lennon
Bs.As.
ARG

Apr 11 '08 #8
>Will you please explain a little detail about the share part? Is the share
>on the DEV machine or on the client's machine?
The share is on the machine you have VS installed on.

Have a look for "How to: Set Up Remote Debugging" on MSDN for more
information.

Dave
Apr 11 '08 #9
Hi Cholo,
This may sould a dumb question -- I do need to copy source files to the
client computer also, correct?

Thanks.

WJ

"Cholo Lennon" wrote:
WJ wrote:
Hi Cholo,
Do you know if WinDBG supports managed-unmanaged mixed applications?
I have troulbe to get the symbol files loaded.

AFAIK yes. Maybe you need SOS.dll. Take a look to:

"SOS: It's Not Just an ABBA Song Anymore"
http://msdn2.microsoft.com/es-ar/mag...38(en-us).aspx

"SOS Debugging Extension (SOS.dll)"
http://msdn2.microsoft.com/en-us/lib...64(VS.80).aspx

--
Cholo Lennon
Bs.As.
ARG

Apr 11 '08 #10
To add some more details, this is a managed-unmanaged mixed application, not
a pure managed C++ application.

Thanks.

WJ

"WJ" wrote:
I have a VC++ application that just crashes on one tester/client's machine.
It runs fine everywhere else.

What are the other options to debug (on the client's machine) without
installing VC++ (on the clinet's machine)? Is this possible at all? Thanks.

WJ
Jun 27 '08 #11
WJ wrote:
To add some more details, this is a managed-unmanaged mixed
application, not a pure managed C++ application.

Thanks.

WJ

"WJ" wrote:
>I have a VC++ application that just crashes on one tester/client's
machine. It runs fine everywhere else.

What are the other options to debug (on the client's machine) without
installing VC++ (on the clinet's machine)? Is this possible at all?
Thanks.

WJ
1st: Deploy your application with .pdb information.

2nd: Install a debugger who can understand a .pdb file like WinDbg (Debugging
tools for Windows, freeware, 16/20Mb,
http://www.microsoft.com/whdc/devtoo...g/default.mspx) or IDA Pro
(http://www.hex-rays.com/idapro/)

3rd: Run you application under the debugger.

Regards

--
Cholo Lennon
Bs.As.
ARG

Jun 27 '08 #12
Where should the .pdb files be installed? Thanks!

"Cholo Lennon" wrote:
WJ wrote:
To add some more details, this is a managed-unmanaged mixed
application, not a pure managed C++ application.

Thanks.

WJ

"WJ" wrote:
I have a VC++ application that just crashes on one tester/client's
machine. It runs fine everywhere else.

What are the other options to debug (on the client's machine) without
installing VC++ (on the clinet's machine)? Is this possible at all?
Thanks.

WJ

1st: Deploy your application with .pdb information.

2nd: Install a debugger who can understand a .pdb file like WinDbg (Debugging
tools for Windows, freeware, 16/20Mb,
http://www.microsoft.com/whdc/devtoo...g/default.mspx) or IDA Pro
(http://www.hex-rays.com/idapro/)

3rd: Run you application under the debugger.

Regards

--
Cholo Lennon
Bs.As.
ARG

Jun 27 '08 #13
>I have a VC++ application that just crashes on one tester/client's machine.
>It runs fine everywhere else.

What are the other options to debug (on the client's machine) without
installing VC++ (on the clinet's machine)? Is this possible at all? Thanks.
Use the remote debugger - in later versions of VS you can run the
remote debugger on the client computer from a share on your dev
machine. In earlier versions it requires a minimal install of the
remote debugger component.

Dave
Jun 27 '08 #14
Hi David,
Will you please explain a little detail about the share part? Is the share
on the DEV machine or on the client's machine? And I assume you'll put Exe
and DLLs under the share? Thanks!

WJ

"David Lowndes" wrote:
I have a VC++ application that just crashes on one tester/client's machine.
It runs fine everywhere else.

What are the other options to debug (on the client's machine) without
installing VC++ (on the clinet's machine)? Is this possible at all? Thanks.

Use the remote debugger - in later versions of VS you can run the
remote debugger on the client computer from a share on your dev
machine. In earlier versions it requires a minimal install of the
remote debugger component.

Dave
Jun 27 '08 #15
WJ wrote:
Where should the .pdb files be installed? Thanks!
Usually in the same directory of your executable. Some debuggers allow you to
load the pdb file from a custom location.

--
Cholo Lennon
Bs.As.
ARG

Jun 27 '08 #16
Hi Cholo,
Do you know if WinDBG supports managed-unmanaged mixed applications? I have
troulbe to get the symbol files loaded.

Thanks.

WJ

"Cholo Lennon" wrote:
WJ wrote:
Where should the .pdb files be installed? Thanks!

Usually in the same directory of your executable. Some debuggers allow you to
load the pdb file from a custom location.

--
Cholo Lennon
Bs.As.
ARG

Jun 27 '08 #17
WJ wrote:
Hi Cholo,
Do you know if WinDBG supports managed-unmanaged mixed applications?
I have troulbe to get the symbol files loaded.
AFAIK yes. Maybe you need SOS.dll. Take a look to:

"SOS: It's Not Just an ABBA Song Anymore"
http://msdn2.microsoft.com/es-ar/mag...38(en-us).aspx

"SOS Debugging Extension (SOS.dll)"
http://msdn2.microsoft.com/en-us/lib...64(VS.80).aspx

--
Cholo Lennon
Bs.As.
ARG

Jun 27 '08 #18
>Will you please explain a little detail about the share part? Is the share
>on the DEV machine or on the client's machine?
The share is on the machine you have VS installed on.

Have a look for "How to: Set Up Remote Debugging" on MSDN for more
information.

Dave
Jun 27 '08 #19
Hi Cholo,
This may sould a dumb question -- I do need to copy source files to the
client computer also, correct?

Thanks.

WJ

"Cholo Lennon" wrote:
WJ wrote:
Hi Cholo,
Do you know if WinDBG supports managed-unmanaged mixed applications?
I have troulbe to get the symbol files loaded.

AFAIK yes. Maybe you need SOS.dll. Take a look to:

"SOS: It's Not Just an ABBA Song Anymore"
http://msdn2.microsoft.com/es-ar/mag...38(en-us).aspx

"SOS Debugging Extension (SOS.dll)"
http://msdn2.microsoft.com/en-us/lib...64(VS.80).aspx

--
Cholo Lennon
Bs.As.
ARG

Jun 27 '08 #20
WJ wrote:
Hi Cholo,
This may sould a dumb question -- I do need to copy source files to
the client computer also, correct?
Not necessarily. Pdb file has enough information stored in it (check
http://msdn2.microsoft.com/en-us/lib...d1(VS.80).aspx) to allow a
complete debug session.

Try debugging this simple program (using their pdb and exe files and using/not
using source code) to check what WinDbg shows you (load application and press F5
(go), then open the disassembly window):

// Try disabling compiler optimizations before compiling
// for better understanding
#include <iostream>

using namespace std;

struct Test
{
Test() { cout << __FUNCTION __ << endl; }
~Test() { cout << __FUNCTION __ << endl; }
void Foo() { cout << __FUNCTION __ << endl; }
};

int main(int, char**)
{
// Force a breakpoint into debugger
__asm int 3;

// Test code
int a = 10;
cout << a + 20 << endl;

Test test;
test.Foo();

Test pTest = new Test;
pTest->Foo();
delete pTest;

return 0;
}
Of course, with WinDbg you don't have the same level of details as VS integrated
debugger (unless you load the source code), but in general it's enough (at least
for me). A disassembler/debugger like IDA Pro is another case. It's really
fantastic, you don't need the source code. Even without pdb file IDA shows you a
big amount of information that simplify the debugging process.

--
Cholo Lennon
Bs.As.
ARG


Jun 27 '08 #21

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Vince C. | last post by:
Hi. This is a feature that is really going on my nerves as I've been writing SOAP Web services using ASP and SOAP toolkit 3.0. My web services ASP scripts send XML data to the client...
4
by: Jacek Dziedzic | last post by:
Hi! First of all, I hope my problem is not too loosely tied to the "standard C++" that is the topic of this group. I have some code that exhibits a strange behaviour: on one computer, where I...
25
by: Jeff | last post by:
Use the MS Script Editor included free with MS Office 2002 and above, for debugging Internet Explorer (IE). This subject is of great interest to many JS developers, as there is no obvious, low...
1
by: tom | last post by:
Hello, I have a VC++ .NET project crashed at run time. Does anybody know how to run debug in .NET that I can get to the line where the program crashes? Thanks.
2
by: Steve | last post by:
Error message: "Unable to start debugging on the web server. Unable to map the debug start page to a machine name." I can no longer run the debugger from my local PC for a project on our web...
4
by: Serg | last post by:
I have created simplest asp.net application. And it starts normally. But i can`t debug it. I am always getting an error: "You do not have permisssion to debug the server. Verify that you are...
46
by: Ian Boyd | last post by:
IIS5, on a Windows 2000 Server machine. Debeg.WriteLine "Hello, world!" How can i view it?
3
by: BobAchgill | last post by:
I downloaded and tried to install my program on a Hebrew Windows Professional computer and got the error at start up of the program: Application has generated an exception that could not be...
5
by: =?Utf-8?B?SmltIFJvZGdlcnM=?= | last post by:
My question is simple: How does one debug ASP Classic with Microsoft Visual Web Developer Express 2005 ("VWD")? Looming in the back of anyone's mind when you see a posting like this on any...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.