Skip to content

Commit 40e6db0

Browse files
committed
clean code
1 parent 1a68402 commit 40e6db0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/debugger/AttachDebugSession.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export class AttachDebugSession extends LoggingDebugSession implements ExprEvalu
7171
var isX86 = true;
7272
cp.exec(`${emmyArchExe} arch -file ${args.program}`, (err, stdout) => isX86 = stdout === "1").on("exit", code => {
7373
if (code === 0xffffffff) {
74+
this.sendEvent(new OutputEvent(`Program: ${args.program} not found!`));
7475
this.sendEvent(new TerminatedEvent());
7576
} else {
7677
const arch = isX86 ? "x86" : "x64";
@@ -212,9 +213,6 @@ export class AttachDebugSession extends LoggingDebugSession implements ExprEvalu
212213

213214
// send breakpoints
214215
const bpList = this.breakpoints.get(filePath);
215-
//this.log("---- send bp");
216-
//this.log(bpList);
217-
//this.log(filePath);
218216
if (bpList) {
219217
for (let index = 0; index < bpList.length; index++) {
220218
const bp = bpList[index];
@@ -278,8 +276,6 @@ export class AttachDebugSession extends LoggingDebugSession implements ExprEvalu
278276
if (!bpList) {
279277
bpList = new Array<EmmyBreakpoint>();
280278
this.breakpoints.set(path, bpList);
281-
//this.log("--- set bp");
282-
//this.log(path);
283279
}
284280
const bps = bpList;
285281

0 commit comments

Comments
 (0)