asmimproved-dbgmits
Version:
Provides the ability to control GDB and LLDB programmatically via GDB/MI.
19 lines (18 loc) • 824 B
TypeScript
import DebugSession from './debug_session';
import * as stream from 'stream';
export declare enum DebuggerType {
GDB = 0,
LLDB = 1,
}
/**
* Starts a new debugging session and spawns the debbuger process.
*
* Once the debug session has outlived its usefulness call [[DebugSession.end]] to ensure proper
* cleanup.
*
* @param debuggerFilename Full path to debugger executable, defaults to either `lldb-mi` or `gdb`
* (based on [[debuggerType]]).
* @returns A new debug session, or null if a new session couldn't be started.
*/
export declare function startDebugSession(debuggerType: DebuggerType, debuggerFilename?: string): DebugSession;
export declare function startGDBDebugSessionFromExistingProcess(stdout: stream.Readable, stdin: stream.Writable, exitSubject: any): DebugSession;