[QGIS-Developer] How to enable debugging mode on QGIS start in Win11

Vedran Stojnović phidrho at gmail.com
Tue Jun 20 10:44:21 PDT 2023


Thank you very much to both of you!

After installing an additional dev version I added the same two lines in
qgis-dev-bin.env and after starting qgis-dev-bin.exe, now I got some output
to the txt file:
C:\src\OSGeo4W\src\qgis-dev\qgis\src\app\main.cpp(514) : (main) [0ms]
Starting qgis main
C:\src\OSGeo4W\src\qgis-dev\qgis\src\core\qgsapplication.cpp(470) :
(QgsApplication::installTranslators) [13ms] loading of qgis translation
failed C:/OSGeo4W/apps/qgis-dev/./i18n//qgis_hr_HR
C:\src\OSGeo4W\src\qgis-dev\qgis\src\core\qgsapplication.cpp(470) :
(QgsApplication::installTranslators) [3ms] loading of qgis translation
failed C:/OSGeo4W/apps/qgis-dev/./i18n//qgis_hr_HR

Is it possible that these two translation files block the entire QGIS
application? Should I bug report this? Or there is some other hidden
problem according to your experience?

uto, 20. lip 2023. u 16:57 Richard Duivenvoorde <rdmailings at duif.net>
napisao je:

> In windows/osgeo4w the 'nightly builds' (with -dev- in there package
> names) are build in DEBUG mode if I am correct...
>
> so these should show you logging info, but I think you also need to
> install a tool to SEE that logging. I know there was some utility for it.
> Not sure if you can see it in the Event Log of WIndows...
> Juergen posted some answers in the old issue tracker, but cannot find it...
>
> Ah wait: from historical docs:
> https://issues.qgis.org/projects/qgis/wiki/Bugreports
> use:
> https://learn.microsoft.com/en-us/sysinternals/downloads/debugview
> (but maybe Windows can do that now without tools...)
>
> Regards,
>
> Richard Duivenvoorde
>
> On 6/20/23 16:38, Alessandro Pasotti via QGIS-Developer wrote:
> > QGIS_DEBUG=X has no effect if QGIS was not built in debug mode.
> >
> >
> > On Tue, Jun 20, 2023 at 4:18 PM Vedran Stojnović via QGIS-Developer
> > <qgis-developer at lists.osgeo.org> wrote:
> >>
> >> Hi,
> >>
> >> I just installed QGIS 3.30.3 via web installer ("qgis-full" version)
> and QGIS won't start at all, nor does throw any error when I start it from
> PowerShell by executing "qgis-bin.exe".
> >> I tried reinstalling a few times using different servers (default one
> and norbit.de) and I also cleaned the cache folder before changing the
> server.
> >>
> >> I already tried adding these two lines to "qgis-bin.env" and I created
> "qgislog.txt" on the desktop, but I still do not get any output to the
> command line and txt file is empty after trying to start qgis:
> >> QGIS_DEBUG=9
> >> QGIS_LOG_FILE=C:\Users\phidr\Desktop\qgislog.txt
> >>
> >> so the current contents of "qgis-bin.env" is:
> >>
> PATH=C:\OSGeo4W\apps\qgis\bin;C:\OSGeo4W\apps\grass\grass82\lib;C:\OSGeo4W\apps\grass\grass82\bin;C:\OSGeo4W\apps\qt5\bin;C:\OSGeo4W\apps\Python39\Scripts;C:\OSGeo4W\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem
> >> GDAL_DATA=C:\OSGeo4W\apps\gdal\share\gdal
> >> GDAL_DRIVER_PATH=C:\OSGeo4W\apps\gdal\lib\gdalplugins
> >> GDAL_FILENAME_IS_UTF8=YES
> >> PDAL_DRIVER_PATH=C:\OSGeo4W\apps\pdal\plugins
> >> GISBASE=C:\OSGeo4W\apps\grass\grass82
> >> GRASS_PROJSHARE=C:\OSGeo4W\share\proj
> >> GRASS_PYTHON=C:\OSGeo4W\bin\python3.exe
> >> OSGEO4W_ROOT=C:\OSGeo4W
> >> PROJ_LIB=C:\OSGeo4W\share\proj
> >> PYTHONHOME=C:\OSGeo4W\apps\Python39
> >> PYTHONPATH=C:\OSGeo4W\apps\grass\grass82\etc\python;
> >> PYTHONUTF8=1
> >> QGIS_PREFIX_PATH=C:/OSGeo4W/apps/qgis
> >>
> QT_PLUGIN_PATH=C:\OSGeo4W\apps\qgis\qtplugins;C:\OSGeo4W\apps\qt5\plugins
> >> VSI_CACHE=TRUE
> >> VSI_CACHE_SIZE=1000000
> >> O4W_QT_PREFIX=C:/OSGeo4W/apps/Qt5
> >> O4W_QT_BINARIES=C:/OSGeo4W/apps/Qt5/bin
> >> O4W_QT_PLUGINS=C:/OSGeo4W/apps/Qt5/plugins
> >> O4W_QT_LIBRARIES=C:/OSGeo4W/apps/Qt5/lib
> >> O4W_QT_TRANSLATIONS=C:/OSGeo4W/apps/Qt5/translations
> >> O4W_QT_HEADERS=C:/OSGeo4W/apps/Qt5/include
> >> QGIS_WIN_APP_NAME=OSGeo4W\QGIS Desktop 3.30.3
> >> SSL_CERT_DIR=C:\OSGeo4W\apps\openssl\certs
> >> SSL_CERT_FILE=C:\OSGeo4W\bin\curl-ca-bundle.crt
> >> QGIS_DEBUG=9
> >> QGIS_LOG_FILE=C:\Users\phidr\Desktop\qgislog.txt
> >>
> >> --
> >> Kind regards,
> >> Vedran Stojnović.
> >> _______________________________________________
> >> QGIS-Developer mailing list
> >> QGIS-Developer at lists.osgeo.org
> >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> >
> >
> >
>
>

-- 
Srdačan pozdrav,
Vedran Stojnović.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20230620/a16874ff/attachment.htm>


More information about the QGIS-Developer mailing list