Re: [SailfishDevel] Debugging on emulator and/or device

2016-11-03 Thread Iosif Hamlatzis
Yes you're right, the project is make based

On Thursday, 3 November 2016, Martin Kampas  wrote:

> Hi Iosif,
>
> > in my makefile I have defined DEBUG & _DEBUG and I don't use for the
> debug version the linker flag -s (for stripping)
>
> This sounds like your project is not using Qmake - if this is true than I
> am not sure I can help you.
>
> > Does anyone know if there is a setting in the QtCreator IDE or any other
> way so that I am not transferred into assembly but on the actual .cpp file
> so I can check the code?
>
> For Qmake based projects debugging on Sailfish devices works out of box
> including navigation to source code. Just switch to debug build
> configuration in Projects mode, rebuild, and you can start debugging.
> Debugger will transfer you to your source code for sure. Does this work for
> you with basic application created with the "Sailfish OS Qt Quick
> Application" wizard?
>
> BR,
> Martin
>
>

-- 
Sent from Gmail Mobile
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Debugging on emulator and/or device

2016-11-03 Thread Martin Kampas
Hi Iosif,

> in my makefile I have defined DEBUG & _DEBUG and I don't use for the debug 
> version the linker flag -s (for stripping)

This sounds like your project is not using Qmake - if this is true than I am 
not sure I can help you.

> Does anyone know if there is a setting in the QtCreator IDE or any other way 
> so that I am not transferred into assembly but on the actual .cpp file so I 
> can check the code?

For Qmake based projects debugging on Sailfish devices works out of box 
including navigation to source code. Just switch to debug build configuration 
in Projects mode, rebuild, and you can start debugging. Debugger will transfer 
you to your source code for sure. Does this work for you with basic application 
created with the "Sailfish OS Qt Quick Application" wizard?

BR,
Martin

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Debugging on emulator and/or device

2016-11-02 Thread Iosif Hamlatzis
At last I've managed to make the IDE work for debugging both on the
emulator and on my device. All my breakpoints work BUT (there is always a
but) when it stops on a breakpoint it takes me to assembly and not my
actual code.

It's plain c++ code, no QML, in my makefile I have defined DEBUG & _DEBUG
and I don't use for the debug version the linker flag -s (for stripping).
Also again for debug version I have all warnings enabled and NO
optimizations

Does anyone know if there is a setting in the QtCreator IDE or any other
way so that I am not transferred into assembly but on the actual .cpp file
so I can check the code?

thnx
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org