From 33ce491caf81499f781577a322a5d313d530897a Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Tue, 7 Jul 2009 00:47:08 +0200 Subject: [PATCH] RemotePlugin: added DEBUG_REMOTE_PLUGIN macro Added new DEBUG_REMOTE_PLUGIN macro. If it is set, the process won't be launched. Instead important information are printed allowing the developer to run the process with according parameters in a debugger. Signed-off-by: Tobias Doerffel --- src/core/remote_plugin.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/core/remote_plugin.cpp b/src/core/remote_plugin.cpp index 39a75a1ac..c9912020a 100644 --- a/src/core/remote_plugin.cpp +++ b/src/core/remote_plugin.cpp @@ -1,7 +1,7 @@ /* * remote_plugin.cpp - base class providing RPC like mechanisms * - * Copyright (c) 2008 Tobias Doerffel + * Copyright (c) 2008-2009 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -36,6 +36,10 @@ #include #endif +//#define DEBUG_REMOTE_PLUGIN +#ifdef DEBUG_REMOTE_PLUGIN +#include +#endif // simple helper thread monitoring our remotePlugin - if process terminates @@ -91,9 +95,13 @@ remotePlugin::remotePlugin( const QString & _plugin_executable, args << QString::number( out()->shmKey() ); args << QString::number( in()->shmKey() ); m_process.setProcessChannelMode( QProcess::MergedChannels ); +#ifndef DEBUG_REMOTE_PLUGIN m_process.start( exec, args ); m_watcher.start( QThread::LowestPriority ); +#else + qDebug() << exec << args; +#endif resizeSharedProcessingMemory();