[Qt-creator] How run client ans server parts of the one project in debug mode

Карелин Павел hkarel at yandex.ru
Mon Mar 21 15:33:24 CET 2016


I decided to describe a solution that I've found for this situation: 
Create a symlink to the project. Start a new instance of QtC and open 
this "new" project. For the "new" project define new build directory. 
It's all. Now you can build and debug. The disadvantage of the solution 
is that the project should be built twice. For small projects - this is 
not a problem, but for large projects it can be uncomfortable.
All the same, I would like to QtC developers have paid attention to the 
problem of debugging the client and server applications when they are 
parts in the same project.


07.03.2016 01:07, Карелин Павел пишет:
>
>
> 07.03.2016 00:52, Orgad Shaneh пишет:
>>
>>
>> בתאריך 6 במרץ 2016 23:47,‏ "Карелин Павел" <hkarel at yandex.ru> כתב:
>> >
>> >
>> >
>> > 06.03.2016 22:19, Andrzej Telszewski пишет:
>> >
>> >> On 06/03/16 20:10, Andrzej Telszewski wrote:
>> >>>
>> >>> On 06/03/16 19:23, Карелин Павел wrote:
>> >>>>
>> >>>>
>> >>>>
>> >>>> 06.03.2016 21:20, Bogdan Vatra пишет:
>> >>>>>
>> >>>>> Hi,
>> >>>>>
>> >>>>> I think you'll need to run two QtCreator instances.
>> >>>>
>> >>>> I tried it, got this error: "Cannot lock build graph file
>> >>>> 
>> '/home/hkarel/CProjects/Gamma7/build/qtc_Qt_551_a195e3b4-debug/qtc_Qt_551_a195e3b4-debug.bg': 
>>
>> >>>>
>> >>>> Already locked by 'QtCreator' (PID 4475)."
>> >>>
>> >>>
>> >>> Is the server and client the same binary?
>> >>> If so, I think you'd have to separate them and then you could run two
>> >>> instances.
>> >
>> > Client and server are separated
>> >
>> >>>
>> >>
>> >> Or maybe another solution. Under "Debug" -> "Start Debugging" you 
>> have various possibilities. Maybe you could "Attach to Running 
>> Application" provided that you have started your application outside 
>> of Qt Creator?
>> >
>> > I tried to attach to running application, but debbuger immediately 
>> quits
>> >
>> >>
>> >> I don't know how the locking is going to behave, though.
>> >
>> > In principle, it would suit me a running the client and server 
>> parts of my application in two different instances of QtCreator. But 
>> I can not open the same project in two different instances of QtCreator.
>>
>> Why do they have to be in the same project? Use 2 projects and 2 
>> instances.
>>
>> - Orgad
>>
> Because in project I have a client, a server and shared libraries. I 
> would like to see it as a single solution in the development and 
> debugging. But judging from your question, I have to invent a 
> surrogate solution for debugging.
>
> --
> Pavel
>
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20160321/47e8f40c/attachment.html>


More information about the Qt-creator mailing list