Skip to content
Draft
6 changes: 3 additions & 3 deletions src/backend/mi2/mi2.ts
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please send a PR for that one to master?

I haven't checked the current related PR, but maybe there are other pieces outside of alice which you could include in the PR.

Thanks!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can make a PR for these changes. However, if I recall correctly, I did this commit following some tool's recommendation, forgot which, and I haven't checked if these changes cause additional issues. These alone do not depend on anything, thankfully.

Aliceserver & Alicedbg are still (super) WIP, so this PR series will be up as a draft for a while... Sorry.

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LogMessage {
protected logReplaceTest = /{([^}]*)}/g;
public logMsgBrkList: Breakpoint[] = [];

logMsgOutput(record){
logMsgOutput(record: { isStream?: boolean; type: any; asyncClass?: string; output?: [string, any][]; content: any; }){
if ((record.type === 'console')) {
if(record.content.startsWith("$")){
const content = record.content;
Expand All @@ -54,7 +54,7 @@ class LogMessage {
}
}

logMsgProcess(parsed){
logMsgProcess(parsed: MINode){
this.logMsgBrkList.forEach((brk)=>{
if(parsed.outOfBandRecord[0].output[0][1] == "breakpoint-hit" && parsed.outOfBandRecord[0].output[2][1] == brk.id){
this.logMsgVar = brk?.logMessage;
Expand Down Expand Up @@ -626,7 +626,7 @@ export class MI2 extends EventEmitter implements IBackend {
return this.sendCommand("break-condition " + bkptNum + " " + condition);
}

setLogPoint(bkptNum, command): Thenable<any> {
setLogPoint(bkptNum: number, command: string): Thenable<any> {
const regex = /{([a-z0-9A-Z-_\.\>\&\*\[\]]*)}/gm;
let m:RegExpExecArray;
let commands:string = "";
Expand Down