Re: [QGIS-Developer] C++ debugging policy/strategy

2022-09-29 Thread Sandro Santilli via QGIS-Developer
On Mon, Sep 26, 2022 at 09:05:14AM +1000, Nyall Dawson wrote: > Don't push code to QGIS master which uses QgsDebugMsg() for anything > BUT reporting unanticipated errors. Shouldn't those report an error rather than a Debug ? > For all other cases you must use > QgsDebugMsgLevel( "message",

Re: [QGIS-Developer] C++ debugging policy/strategy

2022-09-25 Thread Nyall Dawson via QGIS-Developer
On Sat, 24 Sept 2022 at 03:06, Sandro Santilli via QGIS-Developer wrote: > > I often find myself in need to place console printouts to better > understand the flow of data in qgis while analizing bugs, but I never > know how to implement such printouts. > > The attempts I usually make are: > >

[QGIS-Developer] C++ debugging policy/strategy

2022-09-23 Thread Sandro Santilli via QGIS-Developer
I often find myself in need to place console printouts to better understand the flow of data in qgis while analizing bugs, but I never know how to implement such printouts. The attempts I usually make are: (1) qDebug() << "XXX: whatever is " << whatever; (2) std::cerr << "XXX: