[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[Dltk-dev] now i have break on entry and also break on exception..
|
Hi,
i also would like to show in the debugger why it breaks.
Just like the java debugger does that. If i break on exception it says:
Thread [main] (Suspended (exception NullPointerException))
and if i break on a normal breakpoint:
Thread [main] (Suspended (breakpoint at line 28 in AbstractTogglePreferenceKeyHandler))
i would love to have that kind of info also in the dltk debugger. It is very nice to see what and why it breaks.
i do see this now:
protected String getThreadText(IScriptThread thread) {
try {
return MessageFormat.format(
Messages.ScriptDebugModelPresentation_threadText,
new Object[] {
thread.getName(),
thread.isSuspended() ? SUSPENDED_LABEL
: RUNNING_LABEL });
} catch (DebugException e) {
DLTKDebugUIPlugin.log(e);
}
return thread.toString();
}
in ScriptDebugModelPresentation
The problem is how do i get that info to the debugger from the program that is debugged?
Now that is all just a general suspend now from the program:
printResponse("<response command=\"run\"\r\n" + "status=\"break\""
+ " reason=\"ok\"" + " transaction_id=\"" + runTransctionId
+ "\">\r\n" + "</response>\r\n" + "");
i would love to push an extra attribute or use that reason="ok" for that (that sounds also very logical the reason for this break is Breakpoint hit or Exception hit)
johan