From 10ca0e3aa62c460bb785f317b0f1d54b0d96bb18 Mon Sep 17 00:00:00 2001 From: Sebastian Hoogen Date: Wed, 21 Jan 2015 08:51:15 +0100 Subject: [PATCH] Debug output on caught Standard_Failure in BOPAlgo_CheckerSI --- src/BOPAlgo/BOPAlgo_CheckerSI.cxx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/BOPAlgo/BOPAlgo_CheckerSI.cxx b/src/BOPAlgo/BOPAlgo_CheckerSI.cxx index b22be8b..4048ffa 100644 --- a/src/BOPAlgo/BOPAlgo_CheckerSI.cxx +++ b/src/BOPAlgo/BOPAlgo_CheckerSI.cxx @@ -134,27 +134,46 @@ void BOPAlgo_CheckerSI::Perform() myErrorStatus=0; if (myArguments.Extent()!=1) { myErrorStatus=10; +#ifdef OCCT_DEBUG + cout << "BOPAlgo_CheckerSI Error Arguments" << endl; +#endif return; } // if (myNonDestructive) { PrepareCopy(); if (myErrorStatus) { +#ifdef OCCT_DEBUG + cout << "BOPAlgo_CheckerSI Error PrepareCopy " << myErrorStatus << endl; +#endif return; } } // BOPAlgo_PaveFiller::Perform(); +#ifdef OCCT_DEBUG + if (myErrorStatus) { + cout << "BOPAlgo_CheckerSI Error PaveFiller" << myErrorStatus << endl; + } +#endif iErr=myErrorStatus; // PostTreat(); if (myErrorStatus) { +#ifdef OCCT_DEBUG + cout << "BOPAlgo_CheckerSI Error PaveFiller PostTreat "; + cout << myErrorStatus << endl; +#endif iErr=myErrorStatus; } // if (myNonDestructive) { PostTreatCopy(); if (myErrorStatus) { +#ifdef OCCT_DEBUG + cout << "BOPAlgo_CheckerSI Error PostTreatCopy " << myErrorStatus; + cout << endl; +#endif iErr=myErrorStatus; } } @@ -165,6 +184,10 @@ void BOPAlgo_CheckerSI::Perform() } // catch (Standard_Failure) { +#ifdef OCCT_DEBUG + cout << "Exception in BOPAlgo_CheckerSI::Perform: "; + Standard_Failure::Caught()->Print(cout); cout << endl; +#endif if (myNonDestructive) { PostTreatCopy(); } -- 1.7.10.4