|
Last change
on this file since 280 was 2, checked in by Dmitry A. Kuminov, 17 years ago |
|
Initially imported qt-all-opensource-src-4.5.1 from Trolltech.
|
|
File size:
822 bytes
|
| Line | |
|---|
| 1 | name = "delete";
|
|---|
| 2 |
|
|---|
| 3 | group = "breakpoints";
|
|---|
| 4 |
|
|---|
| 5 | shortDescription = "Delete breakpoint(s)";
|
|---|
| 6 |
|
|---|
| 7 | longDescription = "delete <breakpoint-id> : Deletes the breakpoint with the given id.";
|
|---|
| 8 |
|
|---|
| 9 | seeAlso = [ "clear", "disable" ];
|
|---|
| 10 |
|
|---|
| 11 | function execute() {
|
|---|
| 12 | if (arguments.length == 0) {
|
|---|
| 13 | // delete all breakpoints
|
|---|
| 14 | scheduleClearBreakpoints();
|
|---|
| 15 | state = 1;
|
|---|
| 16 | } else {
|
|---|
| 17 | var id = parseInt(arguments[0]);
|
|---|
| 18 | if (isNaN(id)) {
|
|---|
| 19 | message("Breakpoint id expected.");
|
|---|
| 20 | return;
|
|---|
| 21 | }
|
|---|
| 22 | scheduleDeleteBreakpoint(id);
|
|---|
| 23 | breakpointId = id;
|
|---|
| 24 | state = 2;
|
|---|
| 25 | }
|
|---|
| 26 | }
|
|---|
| 27 |
|
|---|
| 28 | function handleResponse(resp) {
|
|---|
| 29 | if (state == 1) {
|
|---|
| 30 | } else if (state == 2) {
|
|---|
| 31 | if (resp.error != 0) {
|
|---|
| 32 | message("No breakpoint number " + breakpointId + ".");
|
|---|
| 33 | return;
|
|---|
| 34 | }
|
|---|
| 35 | }
|
|---|
| 36 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.