Jump to content


Photo

Debugging BlackBox

debug msvc blackbox

  • Please log in to reply
1 reply to this topic

#1 mojmir

mojmir

    BB Developer

  • Moderators
  • 254 posts

Posted 15 August 2014 - 06:51 AM

This text explains how to run blackbox under debugger.

 

First you need sources and stuff, more info on this is here:

http://blackbox4wind...x-from-sources/

 

Then you need a Debug or RelWithDebInfo build, i.e. any build with debug info included. Debug info are the *.pdb files.

RelWithDebInfo a is harder as it is in fact optimized Release build. Debug is much easier to debug as it does not perform compiler optimizations so you have access to all local variables, functions, memory locations etc.

 

There are few ways how to do it, I will describe the way i am doing it.

 

1. First enable developer build in top-level CMakeLists.txt so it looks like this:

 

Attached File  debug_cmake_setup.png   21.62KB   1 downloads
 
2. re-run cmake if necessary
this is not necessary if you already have the project files generated, as cmake will detect this and re-generate the project on build.
 
build_with_cmake.png

 

 
3. open solution in visual studio
 
4. select Debug build

 

Attached File  debug_config.png   28.05KB   0 downloads

 
5. set desired project as "startup", right-click on INSTALL target and click build.
 
Attached File  debug_install.png   25.59KB   0 downloads
 
6. setup directories for debugging
 
Attached File  debug_msvc_setup.png   38.63KB   0 downloads
 
7. press F5 and have debugging fun ;)

  • pitkon and diabol like this

#2 KillingSpree

KillingSpree

    Member

  • Members
  • PipPip
  • 18 posts

Posted 04 October 2014 - 06:01 PM

Thanks, quick and concise; worked like a charm!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users