MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / cmdRun

Method cmdRun

tools/xsbug-log/xsbug-debugmachine.js:2903–2921  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)

Callers 1

handleCommandMethod · 0.95

Calls 4

showPromptMethod · 0.95
questionMethod · 0.80
doAbortMethod · 0.80
logMethod · 0.65

Tested by

no test coverage detected