Re: [osg-users] Setting breakpoints when using osg as library

2013-11-12 Thread Bram Vaessen
Hi Sebastian,

Yes I built OSG from source myself, using CMake and VC++ 2010 Express (I just 
followed the tutorial on this). The strange thing is: when I press f11 during 
debug in a call to OSG for example viewer-someFunction(), it first goes into 
the ref_ptr overloaded operator code, then back to the original line, and then 
if I press F11 one more time, it just jumps to the next line, without jumping 
to the osg function code or asking me to find the PDB. 

Any idea why that is? Is there something broken in my VC++?

Anyway, the Debug-Windows-Modules tab is something that I was looking for: 
information on what is loaded and the possibility to manually load PDB's. Maybe 
that works, or at least it will give some error when it fails. I'll try it!




Thank you!

Cheers,
Bram

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=57192#57192





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Setting breakpoints when using osg as library

2013-11-12 Thread Ronald Aldrich
Bram,

My experience is from Mac OS, but it might be relevant.

I'm finding that when XCode copies files from one location to another, it 
doesn't always maintain the file's modification date, which the dynamic loader 
uses to check the validity of the debugging info.  As a result, I can't trace 
into a library unless I leave it where it was built, or add a post process to 
set the modification date.

- Ron

On Nov 12, 2013, at 1:24 AM, Bram Vaessen bram.vaes...@gmail.com wrote:

 Hi Sebastian,
 
 Yes I built OSG from source myself, using CMake and VC++ 2010 Express (I just 
 followed the tutorial on this). The strange thing is: when I press f11 during 
 debug in a call to OSG for example viewer-someFunction(), it first goes into 
 the ref_ptr overloaded operator code, then back to the original line, and 
 then if I press F11 one more time, it just jumps to the next line, without 
 jumping to the osg function code or asking me to find the PDB. 
 
 Any idea why that is? Is there something broken in my VC++?
 
 Anyway, the Debug-Windows-Modules tab is something that I was looking for: 
 information on what is loaded and the possibility to manually load PDB's. 
 Maybe that works, or at least it will give some error when it fails. I'll try 
 it!
 
 
 
 
 Thank you!
 
 Cheers,
 Bram
 
 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=57192#57192
 
 
 
 
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Setting breakpoints when using osg as library

2013-11-11 Thread Bram Vaessen
It's not working. I keep getting these:

'world2.exe': Loaded 'D:\world2\world2\osg100-osgViewerd.dll', Cannot find or 
open the PDB file

I put the PDB files in the same directory as where the DLL is, under the exact 
name. I ALSO set the directory where the PDB files were initially created 
(osg/bin dir) in the debugging option on where to look for PDB files.
I even copied them into a temp directory that was set as 'cache symbols' 
directory. But still it keeps saying that it can't find or open the PDB file. 

Why is this still not working, what could be wrong? something wrong with the 
dll's ?

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=57183#57183





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Setting breakpoints when using osg as library

2013-11-11 Thread Sebastian Messerschmidt

Am 12.11.2013 00:24, schrieb Bram Vaessen:



It's not working. I keep getting these:

'world2.exe': Loaded 'D:\world2\world2\osg100-osgViewerd.dll', Cannot find or 
open the PDB file

I put the PDB files in the same directory as where the DLL is, under the exact 
name. I ALSO set the directory where the PDB files were initially created 
(osg/bin dir) in the debugging option on where to look for PDB files.
I even copied them into a temp directory that was set as 'cache symbols' 
directory. But still it keeps saying that it can't find or open the PDB file.

Why is this still not working, what could be wrong? something wrong with the 
dll's ?
Usually I set a breakpoint in my code and when I try to step into the 
function I set the pdb location when asked by Visual Studio.
Also, when debugging open the Debug-Windows-Modules tab. There you can 
inspect all loaded dlls and do a Load Symbols from  If this 
doesn't work, your dlls are not matching the pdb files.


Did you build OSG all by yourself?

cheers
Sebastian


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=57183#57183





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Setting breakpoints when using osg as library

2013-11-10 Thread Bram Vaessen
Hi,

I have a (hopefully) easy question. I have compiled osg as a library from 
source, using the tutorials, and now I'm using visuall c++ 2010 as development 
tool.
Is it possible to set breakpoints in the osg sourcecode somehow? I have tried 
to add some projects from osg to my solution, but it doesn't seem to the source 
code with the libraries. For example I can't step into OSG code when I'm 
debugging.
Is is possible what I want to do or do I *not* have to use libraries for that?
If it's possible, what steps would I need to take, and if it's not possible, 
what is the best option if you want to include osg code in debugging in MSVC++?



Thank you!

Cheers,
Bram

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=57161#57161





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Setting breakpoints when using osg as library

2013-11-10 Thread Deniz Koçak
Hi Bram,

In order to debug your app, first of all you need pdb files and
configure VS 2010 wrt your build environment. Whenever you create a
cmake project, you will get a target named RelWithDebugInfo which is
almost equivalent to Release except the generation pdb files. With
pdb files you should be able to set breakpoints like a regular debug
session even with release build of osg. Please take a look at the link
[1] howto configure VS to achieve this task. Hope this helps.

Cheers,
Deniz

[1] http://msdn.microsoft.com/en-us/library/vstudio/ms241613.aspx

On Sun, Nov 10, 2013 at 11:15 PM, Bram Vaessen bram.vaes...@gmail.com wrote:
 Hi,

 I have a (hopefully) easy question. I have compiled osg as a library from 
 source, using the tutorials, and now I'm using visuall c++ 2010 as 
 development tool.
 Is it possible to set breakpoints in the osg sourcecode somehow? I have tried 
 to add some projects from osg to my solution, but it doesn't seem to the 
 source code with the libraries. For example I can't step into OSG code when 
 I'm debugging.
 Is is possible what I want to do or do I *not* have to use libraries for that?
 If it's possible, what steps would I need to take, and if it's not possible, 
 what is the best option if you want to include osg code in debugging in 
 MSVC++?



 Thank you!

 Cheers,
 Bram

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=57161#57161





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Setting breakpoints when using osg as library

2013-11-10 Thread Bram Vaessen
Thanks, I actually do have the pbd files loaded, but I read on the page you 
sent that you also have to specify where vc++ looks for debug source files, so 
I guess I'll have to add the directories with the OSG src files. I hope I can 
step into osg source code in debugging then and set breakpoints as well!

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=57163#57163





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org