[C++-sig] Launch msvc debugger via bjam

David Abrahams dave at boost-consulting.com
Thu Mar 22 15:47:14 CET 2007


on Wed Mar 21 2007, John Reid <j.reid-AT-mail.cryst.bbk.ac.uk> wrote:

> Hi,
>
> I have the following test in my Jamfile.v2
>
> bpl-test gapped_pssm_test
> 	:
> 		test_gapped_pssm.py
> 		_gapped_pssms
> 	;
>
> _gapped_pssms is the name of a python extension.
>
>
> I would like to launch python through my VC Express debugger. On the 
> command line the following works:
> "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\VCExpress" 
> /debugexe python test_gapped_pssm.py
>
> How can I do this using bjam? The --debugger option and -sPYTHON_LAUNCH 
> options that I have seen in various FAQs don't seem to work. I.e. the 
> test is just run using python to launch it.

To make it easy on yourself, stick

  C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\VCExpress" /debugexe %*

in a .bat file, say dbg.bat

then,

  bjam --debugger=dbg.bat ...

HTH,
-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the Cplusplus-sig mailing list