[Qt-creator] Any plans to support python debugging?

2023-01-30 Thread André Hartmann

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@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] Any plans to support python debugging?

2023-01-30 Thread Christian Stenger via Qt-creator
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  on behalf of André 
Hartmann 
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@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator
-- 
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] Any plans to support python debugging?

2023-01-30 Thread Alexandru Croitor via Qt-creator
Hi,

I think this bug report is related to mixed mode debugging.

https://bugreports.qt.io/browse/QTCREATORBUG-27215

> On 30. Jan 2023, at 13:19, Christian Stenger via Qt-creator 
>  wrote:
> 
> 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  on behalf of André 
> Hartmann 
> 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@qt-project.org
> https://lists.qt-project.org/listinfo/qt-creator
> -- 
> Qt-creator mailing list
> Qt-creator@qt-project.org
> https://lists.qt-project.org/listinfo/qt-creator

-- 
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] Any plans to support python debugging?

2023-01-30 Thread André Hartmann

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  on behalf of André Hartmann 

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@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


--
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] Any plans to support python debugging?

2023-01-30 Thread André Hartmann

Hi Alexandru,

thanks for the link to the report, I'll watch it.

I currently have no mixed mode debugging requirement, but that might
change in future.

Thanks and regards,
André

Am 30.01.23 um 13:27 schrieb Alexandru Croitor:

Hi,

I think this bug report is related to mixed mode debugging.

https://bugreports.qt.io/browse/QTCREATORBUG-27215


On 30. Jan 2023, at 13:19, Christian Stenger via Qt-creator 
 wrote:

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  on behalf of André Hartmann 

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@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator
--
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator




--
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator