[Qt-creator] Any plans to support python debugging?
André Hartmann
aha_1980 at gmx.de
Mon Jan 30 14:47:33 CET 2023
Hi Christian,
indeed it works. One requirement seems to be a .pyproject file [1],
containing your Python file. Then you get a debug and a run button.
Very nice!
My breakpoint was ignored first and the app stopped at the first line,
but I then could run until the breakpoint. I could inspect the
variables, step over instructions. Just what you expect from a debugger.
Awesome!
Now my question: Is this an official feature? I.e. can I create
bugreports when I discover small bugs? Also, there does not seem to be
much documentation, I guess few people working with that feature therefore?
Thanks for that wonderful IDE. I cannot imagine working with something else.
Regards,
André
[1] I've created an Empty Qt for Python Application as there was no
"Python without Qt" app template, but that instantly worked when I
replaced the main.py with my simple Python code.
Am 30.01.23 um 13:19 schrieb Christian Stenger:
> Hi Andre,
>
> If you're talking about debugging pure Python QC should just work.
> If you mean debugging an application that is based on C++ and may end up inside Python code this is not possible at the current state.
>
> IIRC we had some discussion some time ago, but so far we had not the time to have a deeper look. I think there's not even a bugreport / feature request for this to be able to vote on.
>
> BR,
> Christian
>
> ________________________________________
> From: Qt-creator <qt-creator-bounces at qt-project.org> on behalf of André Hartmann <aha_1980 at gmx.de>
> Sent: Monday, January 30, 2023 1:04 PM
> To: qt-creator
> Subject: [Qt-creator] Any plans to support python debugging?
>
> Hi Creator developers and users,
>
> when I see my colleagues installing vscode just to debug python,
> I wonder if Creator couldn't do that too?
>
> We already have good Python support with the language server, Qt itself
> has Python bindings and Creators debugger interface uses Python dumpers,
> so my question: are there any plans to support debugging Python code?
>
> Thanks and best regards,
> André
> --
> Qt-creator mailing list
> Qt-creator at qt-project.org
> https://lists.qt-project.org/listinfo/qt-creator
More information about the Qt-creator
mailing list