()
| 2901 | }); |
| 2902 | } |
| 2903 | cmdRun() { |
| 2904 | if (this.connected) { |
| 2905 | this.promptShown = true; |
| 2906 | this.rl.question('The program being debugged has been started already.\nStart it from the beginning? (y or n) ', (answer) => { |
| 2907 | answer = answer.trim().toLowerCase(); |
| 2908 | if (answer === 'y' || answer === 'yes') { |
| 2909 | console.log('Starting program...'); |
| 2910 | this.doAbort(); |
| 2911 | } else { |
| 2912 | console.log('Not confirmed.'); |
| 2913 | this.promptShown = false; |
| 2914 | this.showPrompt(); |
| 2915 | } |
| 2916 | }); |
| 2917 | } else { |
| 2918 | console.log('No active program to restart.'); |
| 2919 | this.showPrompt(); |
| 2920 | } |
| 2921 | } |
| 2922 | |
| 2923 | cmdQuit() { |
| 2924 | if (this.connected) |
no test coverage detected