11import {
2- LoggingDebugSession , Event , OutputEvent , TerminatedEvent , InitializedEvent ,
2+ OutputEvent , TerminatedEvent , InitializedEvent ,
33 Breakpoint , StoppedEvent , StackFrame , Source , Thread , Handles
44} from 'vscode-debugadapter' ;
55import { DebugProtocol } from "vscode-debugprotocol" ;
@@ -15,6 +15,7 @@ import {
1515import { ByteArray } from './ByteArray' ;
1616import * as path from 'path' ;
1717import * as fs from 'fs' ;
18+ import { EmmyDebugSession } from './EmmyDebugSession' ;
1819
1920var emmyArchExe :string , emmyLua : string ;
2021var breakpointId :number = 0 ;
@@ -42,7 +43,7 @@ interface EmmyBreakpoint {
4243 line : number ;
4344}
4445
45- export class AttachDebugSession extends LoggingDebugSession implements ExprEvaluator , LoadedScriptManager {
46+ export class AttachDebugSession extends EmmyDebugSession implements ExprEvaluator , LoadedScriptManager {
4647
4748 private socket ?: net . Socket ;
4849 private receiveBuf = new sb . SmartBuffer ( ) ;
@@ -57,7 +58,7 @@ export class AttachDebugSession extends LoggingDebugSession implements ExprEvalu
5758 private sourcePaths : string [ ] = [ ] ;
5859
5960 public constructor ( ) {
60- super ( "emmy_attach.txt" ) ;
61+ super ( ) ;
6162 this . setDebuggerColumnsStartAt1 ( false ) ;
6263 this . setDebuggerLinesStartAt1 ( false ) ;
6364 }
@@ -347,10 +348,6 @@ export class AttachDebugSession extends LoggingDebugSession implements ExprEvalu
347348 }
348349 }
349350
350- private log ( obj : any ) {
351- this . sendEvent ( new Event ( "log" , obj ) ) ;
352- }
353-
354351 public findScriptByIndex ( index : number ) : LoadedScript | undefined {
355352 for ( const iterator of this . loadedScripts ) {
356353 if ( iterator [ "1" ] . index === index ) {
0 commit comments