How to get information about code lines in Qt? [closed]
-
22-04-2021 - |
Pregunta
I need to be able to read information about project lines in the Qt project which is building by MinGW. How can I do it? Where I should include - /MAPINFO:LINES , to get output file with information about lines numbers?
Solución
Try to use __LINE__.
Example:
qDebug()<<__LINE__<<"hi";
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow