|
Re: Debugger problems on 2nd run [message #332399 is a reply to message #332398] |
Tue, 21 October 2008 01:10 |
Matt Gray Messages: 13 Registered: July 2009 |
Junior Member |
|
|
Here's some more details about my problem.
I have a LaunchConfigurationDelegate subclass, which does something like
the following for the debug launch. I'm using a custom class to exec the
commands, as we need to do stupid things for our Windows build system,
like starting Cygwin first and setting environment vars:
---
SysCommandExecutor exec = new SysCommandExecutor();
String cmd = "some pre compile commands";
p = exec.runCommandHelper(cmd);
DebugPlugin.newProcess(launch, p, "Pre compile 1...");
p.waitFor();
String cmd = "some linking commands";
p = exec.runCommandHelper(cmd);
DebugPlugin.newProcess(launch, p, "Linking...");
p.waitFor();
if (p.exitValue() == 0 && mode.equals("debug")) {
cmd = "command to run my debugger";
p = exec.runCommandHelper(cmd);
IProcess process= DebugPlugin.newProcess(launch, p, "Debug Run");
IStreamsProxy iSP = process.getStreamsProxy();
IDebugTarget target = new G12DebugTarget(launch,process,iSP );
launch.addDebugTarget(target);
DebugPlugin.getDefault().addDebugEventListener((IDebugEventS etListener)
target);
---
So, this works the first time, but on subsequent runs the Debug view
doesn't notice that there is anything happening.
If I close the Debug view, then re-open it for the next run, it is all
fine.
Any ideas what I'm doing wrong here?
Thanks,
Matt.
|
|
|
Powered by
FUDForum. Page generated in 0.02809 seconds