MCPcopy Create free account
hub / github.com/Marus/cortex-debug / evalExpression

Method evalExpression

src/backend/mi2/mi2.ts:896–906  ·  view source on GitHub ↗
(name: string, threadId: number, frameId: number)

Source from the content-addressed store, hash-verified

894
895 // Pass negative threadId/frameId to specify no context or current context
896 public evalExpression(name: string, threadId: number, frameId: number): Thenable<any> {
897 if (trace) {
898 this.log('stderr', 'evalExpression');
899 }
900 return new Promise((resolve, reject) => {
901 const thFr = MI2.getThreadFrameStr(threadId, frameId);
902 this.sendCommand(`data-evaluate-expression ${thFr} ` + name).then((result) => {
903 resolve(result);
904 }, reject);
905 });
906 }
907
908 public static FORMAT_SPEC_MAP = {
909 b: 'binary',

Callers

nothing calls this directly

Calls 3

logMethod · 0.95
sendCommandMethod · 0.95
getThreadFrameStrMethod · 0.80

Tested by

no test coverage detected