| 66 | } |
| 67 | |
| 68 | void GDBDebugger::init() |
| 69 | { |
| 70 | //use to debugging adapter |
| 71 | // DebugManager::instance()->command("set logging file /tmp/log.txt"); |
| 72 | // DebugManager::instance()->command("set logging on"); |
| 73 | |
| 74 | QString prettyPrintersPath = CustomPaths::CustomPaths::global(CustomPaths::Scripts) + "/prettyprinters"; |
| 75 | DebugManager::instance()->command(QString("python sys.path.insert(0, \"%1\")").arg(prettyPrintersPath)); |
| 76 | |
| 77 | DebugManager::instance()->command("python from qt import register_qt_printers"); |
| 78 | DebugManager::instance()->command("python register_qt_printers(None)"); |
| 79 | |
| 80 | DebugManager::instance()->command("set print sevenbit-strings off"); |
| 81 | DebugManager::instance()->command("set breakpoint pending on"); |
| 82 | DebugManager::instance()->command("-enable-pretty-printing"); |
| 83 | |
| 84 | DebugManager::instance()->command("set width 0"); |
| 85 | DebugManager::instance()->command("set height 0"); |
| 86 | } |
| 87 | |
| 88 | QString GDBDebugger::program() |
| 89 | { |