<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Tom,</FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks for the hint. What worked for me is as
follows.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I created the VTK projects and solution for VC++ 7
using CMake and build the solution with DEBUG information. This places
references to debug database files in each DLL. Copied these DLLs into the VTK
binaries folder which is on Windows' search path so that runtime loads these
DLLs. Created a project for application which uses VTK. In this solution, there
is no need to add the VTK projects created by CMake. Developed my application as
usual. As such if I run this in IDE, I cannot step into the VTK code. To be able
to do so needs telling the debugger where to find debug information (as you
indicated). In project properties, select 'Debugging' page. Under 'Action' there
is an entry for 'Symbol Path'. Here one can give comma delimited list of folders
where debugger should search for additional symbol files. I added reference to
the folder (bin\debug where the VTK CMake solution is built). Once I do this, I
am able to step into the VTK code.</FONT></DIV>
<DIV><FONT face=Arial size=2>Hope this will be useful for others
too.</FONT></DIV>
<DIV><FONT face=Arial size=2>Vidyadhar</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=tefinegan@yahoo.com href="mailto:tefinegan@yahoo.com">Tom Finegan</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, April 16, 2005 10:54
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [vtkusers] Debuggin VTK
code</DIV>
<DIV><BR></DIV>You need to put the path to the various VTK source directories.
This is done in the visual studio tools/options dialog, under "environment" or
something like that. Make sure the directory for "source files" points to the
vtk source directories. My windows machine isn't booted, so I'm going on
memory here, but the basic concept is correct.<BR><BR>On Apr 15, 2005, at 9:48
PM, vidyadhar wrote:<BR><BR>
<BLOCKQUOTE><?fontfamily><?param Arial><?smaller>Hi,<?/smaller><?/fontfamily><BR><?fontfamily><?param Arial><?smaller>I
am using VTK 4.2 with VC++ 6.0 and 7.0 on MS Windows platform. For this
purpose, I have installed the binaries (dll). I am able to build my
applications this way.<?/smaller><?/fontfamily><BR><?fontfamily><?param Arial><?smaller>Now I
wish to understand the internal workings of VTK. I have the VTK source code.
Using CMake, I succeeded in creating required projects etc. (I can do this
for both versions of my compiler). So I can create Debug version of VTK
binaries. I am unable to figure out how to setup my application
project/solution so as to be able to trace/step into the VTK code in dlls.<?/smaller><?/fontfamily><BR><?fontfamily><?param Arial><?smaller>If
somebody can give me directions on how to do this for a simple application
(say console application) I will be very
grateful.<?/smaller><?/fontfamily><BR><?fontfamily><?param Arial><?smaller>Thanks
in advance.<?/smaller><?/fontfamily><BR><?fontfamily><?param Arial><?smaller>Vidyadhar<?/smaller><?/fontfamily><BR>_______________________________________________<BR>This
is the private VTK discussion list. <BR>Please keep messages on-topic. Check
the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to
subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>