- Create a blank Xcode project for the purpose of debugging your app, if it was not built with Xcode.
- Select your executable you wish to debug using
Debug->Debug Executable...orDebug->Attach to process. - You can modify startup parameters for the app using the scheme, accessible at
Product->Scheme->Edit Scheme.... - To load debug versions of libraries, like the Qt libraries, set the environment variable
DYLD_IMAGE_SUFFIXto_debugwhich will load the the debug versions of the Qt libraries. You can set this in the Arguments tab of the Scheme editor. - In Scheme editor, make sure that the
Document Versions ☐ Allow debugging when browsing versionscheckbox is unchecked - it defaults to on. Without doing this, you will often have applications failing on startup because Xcode inserts command line options to the application that the app is not expecting. - Make sure that the .dSYM files are located adjacent to the .frameworks and/or .dyld libraries.
- Running `image l
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Building for: macx-clang (x86_64;arm64), x86_64 features: cx16 mmx sse sse2 sse3 ssse3 sse4.1) | |
| Compiler: clang (Apple) 14.0.0.14000029 | |
| Build options: | |
| Mode ................................... debug and release (with debug info) | |
| Optimize release build for size ........ no | |
| Fully optimize release builds (-O3) .... no | |
| Building shared libraries .............. yes | |
| Using C standard ....................... C11 | |
| Using C++ standard ..................... C++17 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import maya.cmds as cmds | |
| from PySide6.QtCore import Slot, QObject, QElapsedTimer | |
| from PySide6.QtWidgets import QWidget, QApplication, QFileDialog | |
| app = QApplication.instance() | |
| active_window = None | |
| elapsed_timer = QElapsedTimer() | |
| @Slot(QWidget, QWidget) | |
| def check_if_dialog_open(old, now): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try: | |
| from PySide2.QtWebEngineWidgets import QWebEngineView | |
| from PySide2.QtCore import QObject, Signal, Slot, QTimer, QEventLoop, QPoint | |
| from PySide2.QtWidgets import QLabel, QWidget | |
| from PySide2.QtGui import QImage, QRegion | |
| except ModuleNotFoundError: | |
| from PySide6.QtWebEngineWidgets import QWebEngineView | |
| from PySide6.QtCore import QObject, Signal, Slot, QTimer, QEventLoop, QPoint | |
| from PySide6.QtWidgets import QLabel, QWidget | |
| from PySide6.QtGui import QImage, QPainter, QRegion, QPixmap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| libXrender-devel libXrender | |
| libxcb-devel libxcb-render, libxcb-shape, libxcb-randr, libxcb-xfixes, libxcb-xkb, libxcb-sync, libxcb-shm | |
| xcb-util-renderutil-devel libxcb-render-util | |
| xcb-util-wm-devel libxcb-icccm | |
| xcb-util-keysyms-devel libxcb-keysyms | |
| xcb-util-image-devel libxcb-image | |
| xcb-util-devel libxcb-util | |
| xcb-util-cursor-devel libxcb-cursor0 | |
| libxkbcommon-devel libxkbcommon | |
| libxkbcommon-x11-devel libxkbcommon-x11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys | |
| import os | |
| import os.path | |
| import requests | |
| if __name__ == "__main__": | |
| if not os.path.isfile("./init-repository"): | |
| print("Please execute from the base of a qt5 repository", file=sys.stderr) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys | |
| from argparse import ArgumentParser, Namespace | |
| from pathlib import Path | |
| import os | |
| from os.path import dirname, basename | |
| from typing import Tuple | |
| from shutil import copy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pyside2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PySide6.QtGui import QStandardItem | |
| import traceback | |
| from enum import IntEnum | |
| user_type = QStandardItem.UserType | |
| # should get: `ItemType.UserType` with new enum support | |
| assert str(user_type) == "ItemType.UserType", "user_type != ItemType.UserType" | |
| try: | |
| assert user_type + 1 == 1001, "user_type + 1 != 1001" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Script to recover multiple inodes of deleted files discovered in the NTFS MFT | |
| # file of an NTFS volume | |
| set -e | |
| set -u | |
| echo "$0 $@" |