Commit Graph

130 Commits

Author SHA1 Message Date
Arvid Ephraim Picciani
c0da255a87 Experimental lldb engine host 2010-11-09 14:01:27 +01:00
Friedemann Kleint
22f03cbde6 ProjectExplor/Debugger: Header cleanup 2010-11-02 16:14:00 +01:00
Christian Kandeler
548df9385b Maemo: Use dynamic port list.
Check whether the ports we need are actually available on the device.
As a side effect, this makes it possible to debug more than one
application at the same time on Maemo.

Task-number: QTCREATORBUG-2702
2010-11-02 14:27:18 +01:00
Friedemann Kleint
6510a749b7 ProjectExplorer: Move ToolChainType enumeration into separate Header.
Acked-By: dt
2010-11-01 14:25:24 +01:00
Friedemann Kleint
6a07c45477 Debugger: Disable gdb post-mortem debugging on Windows.
As it is not able to do the event-handshake required.

Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Task-number: QTCREATORBUG-2086
2010-10-22 11:31:33 +02:00
Friedemann Kleint
db671e8202 Debugger: Avoid crashes when no C++-engine is available.
Check for valid runcontrols in various places and initialize
m_engine correcly. In the case of QML-Debugging, handle
NoEngineType.

Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Task-number: QTCREATORBUG-2086
2010-10-22 11:27:45 +02:00
Kai Koehne
774c2ec205 Debugger: Allow pure qml debugging if no C++ debugger is configured
Don't complain e.g. about a missing cdb debugger if the user doesn't
want to debug C++ anyway.

Task-number: QTCREATORBUG-2376
Reviewed-by: hjk
2010-10-15 13:38:12 +02:00
Friedemann Kleint
58865c35b0 Debugger[CDB]: Handle 'enabled' configuration setting.
Pass on error message when engine creation fails.

Reviewed-by: hjk
Task-number: QTCREATORBUG-2608
2010-10-05 14:30:26 +02:00
Jarek Kobus
da79614008 Translator corrections 2010-09-29 12:48:50 +02:00
Friedemann Kleint
bf8dedaade Debugger: Handle synchronous startup fail (Windows).
Make DebuggerRunner handle QProcess::startFailed
correctly on Windows (synchronous signal emission
within startDebugger()).
Remove debug output/warnings.

Reviewed-by: hjk
2010-09-29 10:32:41 +02:00
Lasse Holmstedt
96d991bbdc QML Observer: Build together on runtime with debugging tools
Moved qmljsdebugger to a dir under qml/, made qmlobserver compile
without creator dependencies and made it compile with debugging
helpers.

Reviewed-by: hjk
2010-09-29 09:39:30 +02:00
dt
5adeb48e52 ApplicationRC: make exectuable() and co. return expanded values 2010-09-27 15:56:37 +01:00
Tobias Hunger
50f9165b05 Handle environment variables when starting an application
* Handle environment variables in workdir, executable name as
   well as arguments when starting an application
 * Cover both debugger and normal application starts
2010-09-24 16:35:07 +02:00
Tobias Hunger
f5c044fe48 Move ProjectExplorer::Environment to Utils::Environment
Reviewed-by: dt
2010-09-23 13:40:26 +02:00
Lasse Holmstedt
b580a0c357 QmlDebugging: Use -qmljsdebugger command line argument
Adapt to latest changes in qt.git (commit
a9e5329168c)

Reviewed-by: kkoehne
2010-09-20 12:18:59 +02:00
Christian Kandeler
ae4c35bd86 Maemo: Support QML-only debugging.
Reviewed-by: kh1
2010-09-16 17:08:58 +02:00
Kai Koehne
63cae2981b QmlJsDebugger: Replace QDDesignView by QDViewObserver
Don't force users to inherit from QDeclarativeDesignView. Instead we're
using now event filters to let a user attach a QDeclarativeViewObserver
object to a QDeclarativeDesignView.
2010-09-15 14:18:39 +02:00
Friedemann Kleint
83e60a1747 Debugger: Unexport GdbEngine, d-pointer for run control. 2010-09-14 08:34:07 +02:00
Friedemann Kleint
f7b19f8114 Debugger: Move DebuggerEngine/QmlEngine/QmlCppEngine into Debugger{}
namespace (from Debugger::Internal) as they are exported classes.
Introduce private classes to avoid exposing private JS debugger
headers.
2010-09-13 13:30:35 +02:00
Friedemann Kleint
342ab57db2 Debugger: Un-export GdbAdapters.
Reviewed-by: hjk
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
2010-09-13 11:08:08 +02:00
hjk
06a3bf980b debugger: don't suppress previous error messages. 2010-09-10 17:22:28 +02:00
Lasse Holmstedt
f1ff2a01cc QML Debugger: Mangle shadow build filenames
Without doing some magic for the filenames, we go to shadow build files
instead of the real ones, resulting in confusion. The user should never
see the shadow build files while debugging.

Reviewed-by: hjk
2010-09-08 14:55:07 +02:00
Christian Kandeler
03492f24da QML debugging: Adaptations for Maemo.
Reviewed-by: Lasse Holmstedt
2010-09-08 14:27:13 +02:00
Kai Koehne
6f11765dae Qml: Allow user to configure port used (all project types)
Reviewed-by: dt
2010-09-03 12:29:41 +02:00
Lasse Holmstedt
db7bf9a806 Debugger: Removed unused methods 2010-08-31 17:34:03 +02:00
Lasse Holmstedt
7c1f9fba8b Debugger: Disable auto switching of debugger languages based on qmlfiles 2010-08-31 16:49:00 +02:00
Lasse Holmstedt
7607f2ffbe Debugger UI: Removed debug language detection on mode change
It did more harm than good. Now, the auto detection is only done on
run control change - this is something that Creator could also remember.
2010-08-31 14:05:33 +02:00
hjk
98bd57d2ba debugger: add a few lines to the Application Output pane on debugger start/stop 2010-08-27 17:24:22 +02:00
Lasse Holmstedt
afdd933ff3 Debugger UI: Don't switch layout while debugging
Reviewed-by: hjk
2010-08-27 16:24:36 +02:00
Lasse Holmstedt
f547fc1618 Debugger: Fixed missing variable init
Got lost in a merge.
2010-08-25 09:59:33 +02:00
Lasse Holmstedt
7afef49682 Qml Debugger: Code style and cleanup
Reviewed-by: hjk
2010-08-24 17:47:20 +02:00
Lasse Holmstedt
b557c58eac Qml Debugger: Enable debugging qml+cpp standalone applications
A new debugger engine, QmlCppEngine, is introduced, which wraps gdb
and qml engines into one. Alternatively, if using Windows, Cdb is used
instead of Gdb.

Most of the debugger ui switcher is now rewritten, and it is tailored
for the QML and CPP layout case, the only one supported anyway.

Reviewed-by: hjk
2010-08-24 17:46:22 +02:00
Friedemann Kleint
ad9ff8ed74 Debugger: Fix exit crash.
Make sure DebuggerRunner::finished() is always connected to
handleFinished() (even for subclassed DebuggerRunners). Add
some more debugging information.
2010-08-24 16:22:21 +02:00
Friedemann Kleint
54f9654bd3 Debugger: Fix Symbian.
...which subclasses DebuggerRunner and does not call
DebuggerPlugin::startDebugger(), which connects the
engine, leading to strange malfunctions. Move functionality
to DebuggerRunner::start() to make it self-contained.
Add object names to engines for easier debugging.

Reviewed-by: hjk
2010-08-24 15:35:46 +02:00
Friedemann Kleint
5b4f826552 S60: Dis-embed the embedded run S60 debugger run control.
As it created 2 output panes that could be closed indepently
of each other.
2010-08-20 15:23:42 +02:00
Friedemann Kleint
6840c1d198 Debugger: Refactor run control termination.
Fix breakage introduced by the new asynchronous stop() methods
of the debugger run controls. Allow for RunControl::stop() to
be asynchronous by introducing a return enumeration indicating
that. Introduce additional method aboutToStop() asking user
to quit (tie that to the RunControl instead of having to hack
the behaviour elsewhere).
If asynchronous stop is detected, terminate the ProjectExplorer
asynchronously.
This makes the behaviour consistent across switching sessions/
closing outputwindow tabs and quitting Qt Creator.

Reviewed-by: dt
Rubber-stamped-by: hjk
2010-08-20 14:19:25 +02:00
Lasse Holmstedt
f23c2286c9 QML Debugger: OS X support for detecting qml viewer/observer 2010-08-13 14:59:47 +02:00
Lasse Holmstedt
b71c3c62ba QML Debugger refactoring
Now, QmlEngine creates the connection to the inferior (debuggee), and
notifies QmlInspector when a connection is established. Before,
inspector created the debugger engin, which was wrong.

QmlEngine's responsibilities are connecting to the debuggee and basic
QML/JS debugging features like locals & watchers, breakpoints etc.
QmlInspector takes care of Live Preview and other fancy inspection
features.

Reviewed-by: hjk
2010-08-13 14:20:39 +02:00
Olivier Goffart
9df9695a7f debugger: get rid of the private header dependency
Removed the CanvasFrameRate class as it is not used, and
depends on private Qt API
2010-08-10 10:10:39 +02:00
Kai Koehne
17bab9dce9 Debugger: Fix compilation if no private headers are specified
Don't try to compile the qml debugger backend (which needs
private headers from Qt) if private headers cannot be located.

Reviewed-by: hjk
2010-08-09 14:40:28 +02:00
hjk
96561a38c7 debugger: enable debugging of multiple projects at the same time 2010-07-22 10:59:22 +02:00
hjk
f292254967 debugger: attempt to re-try examining dumper location after build.
Still does not work as the location itself is unknown.
2010-07-21 12:07:49 +02:00
hjk
753a28ed4e debugger: make debugger restartable using the buttons in the application output pane 2010-07-20 18:54:50 +02:00
hjk
063ae8ad97 debugger: remove unused DebuggerRunner::init() 2010-07-20 18:54:50 +02:00
hjk
80f52cce28 debugger: tie engine creation close to runconfiguration creation
We'd like to be able to restart a debugger engine at some point of time.
2010-07-20 18:54:50 +02:00
hjk
038d943f9a debugger: fix shutdown by pressing "[x]" in the output pane 2010-07-02 12:40:36 +02:00
hjk
afb54077f5 debugger: fix some regressions in the log output after the engine refactoring 2010-06-30 14:40:04 +02:00
Friedemann Kleint
beba423a16 Debugger[Trk]: Added TCF experimental adapter.
Added adapter to work with TCF over WLAN.
Factor out common code for Symbian from TrkAdapter.
Improve message logging in TrkGdbAdapter, some cleanup.
Added new TcfTrkGdbAdapter based on TcfTrkDevice
in symbianutils based on JSON, using QTcpSocket.
To be started via special @tcf@ argument.
Rubber-stamped-by: hjk
2010-06-25 15:06:30 +02:00
hjk
5adb6559e2 debugger: attempt to fix symbian output connections 2010-06-23 12:40:56 +02:00
hjk
e6590ff598 debugger: fix addToWatchWindow 2010-06-23 11:06:01 +02:00