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

Карелин Павел hkarel at yandex.ru
Sun Mar 6 23:07:29 CET 2016



07.03.2016 00:52, Orgad Shaneh пишет:
>
>
> בתאריך 6 במרץ 2016 23:47,‏ "Карелин Павел" <hkarel at yandex.ru 
> <mailto: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

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


More information about the Qt-creator mailing list