Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

与QT Creator程序冲突 #24

Closed
wxq491216 opened this issue Feb 19, 2021 · 3 comments
Closed

与QT Creator程序冲突 #24

wxq491216 opened this issue Feb 19, 2021 · 3 comments

Comments

@wxq491216
Copy link

在mac版本上使用后,会导致QT Creator无法正常调试,有办法兼容这个问题么?

@4ch12dy
Copy link
Owner

4ch12dy commented Feb 19, 2021

应该没有关系吧?

@wxq491216
Copy link
Author

我确认过,把.lldbinit中添加的语句注释掉,QT Creator就能够正常用了,具体原因我也不是很清楚,查资料有提到过DefaultPythonVersion导致的,但确认了我本地值是2,有点奇怪。

@4ch12dy 4ch12dy closed this as completed Mar 5, 2021
@MustangYM
Copy link
Contributor

MustangYM commented Mar 21, 2022

确实与Qt Creator的debug不兼容

  • Qt Creator 5.0.2
  • QT5.15.2
  • DefaultPythonVersion = 2(因为QT必须要设置为版本2才能debug,不知是否是这个原因,未知)
  • xia0LLDB 3.1

QT Error log

`[xia0LLDB] * Version: 3.1

[xia0LLDB] + Loading all scripts from /Users/apple/Downloads/xia0LLDB-master/src
[xia0LLDB] * Finished
(lldb) script sys.path.insert(1, '/Applications/Qt Creator.app/Contents/Resources/debugger/')
(lldb) script from lldbbridge import *
Traceback (most recent call last):
File "", line 1, in
File "/Applications/Qt Creator.app/Contents/Resources/debugger/lldbbridge.py", line 35, in
from utils import DebuggerStartMode, BreakpointType, TypeCode, LogChannel
ImportError: cannot import name 'DebuggerStartMode' from 'utils' (/Users/apple/Downloads/xia0LLDB-master/src/utils.py)`

我临时将.lldbinit文件删除后,QT的debug恢复正常工作

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants