Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: debug on client's computer (without debugger?)
WJ wrote:
> Where should the .pdb files be installed? Thanks!
>

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

--
Cholo Lennon
Bs.As.
ARG




Report this thread to moderator Post Follow-up to this message
Old Post
Cholo Lennon
04-12-08 12:25 AM


Re: debug on client's computer (without debugger?)
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/library/yd4f8bd1(VS.80).aspx) to allow a
complete debug session.

Try debugging this simple program (using their pdb and exe files and using/n
ot
using source code) to check what WinDbg shows you (load application and pres
s 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 integr
ated
debugger (unless you load the source code), but in general it's enough (at l
east
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 y
ou a
big amount of information that simplify the debugging process.

--
Cholo Lennon
Bs.As.
ARG





Report this thread to moderator Post Follow-up to this message
Old Post
Cholo Lennon
04-12-08 12:25 AM


Sponsored Links




Last Thread Next Thread Next
Pages (2): « 1 [2]
Search this forum -> 
Post New Thread

VC++ archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:53 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.