File tree 5 files changed +12
-9
lines changed
5 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ Versioning].
12
12
13
13
### Added
14
14
15
+ - fix gdb check error when debug beginning ([ @henryriley0 ] )
16
+ - fix implicitly type error in log message when build vsix ([ @henryriley0 ] )
15
17
- check for configured debugger before start to provide a nicer error message
16
18
([ @GitMensch ] )
17
19
@@ -242,6 +244,7 @@ Versioning].
242
244
[ @gentoo90 ] : https://github.com/gentoo90
243
245
[ @gitmensch ] : https://github.com/GitMensch
244
246
[ @haronk ] : https://github.com/HaronK
247
+ [ @henryriley0 ] : https://github.com/HenryRiley0
245
248
[ @jelleroets ] : https://github.com/JelleRoets
246
249
[ @karljs ] : https://github.com/karljs
247
250
[ @kvinwang ] : https://github.com/kvinwang
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class LogMessage {
33
33
protected logReplaceTest = / { ( [ ^ } ] * ) } / g;
34
34
public logMsgBrkList : Breakpoint [ ] = [ ] ;
35
35
36
- logMsgOutput ( record ) {
36
+ logMsgOutput ( record : any ) {
37
37
if ( ( record . type === 'console' ) ) {
38
38
if ( record . content . startsWith ( "$" ) ) {
39
39
const content = record . content ;
@@ -54,7 +54,7 @@ class LogMessage {
54
54
}
55
55
}
56
56
57
- logMsgProcess ( parsed ) {
57
+ logMsgProcess ( parsed : any ) {
58
58
this . logMsgBrkList . forEach ( ( brk ) => {
59
59
if ( parsed . outOfBandRecord [ 0 ] . output [ 0 ] [ 1 ] == "breakpoint-hit" && parsed . outOfBandRecord [ 0 ] . output [ 2 ] [ 1 ] == brk . id ) {
60
60
this . logMsgVar = brk ?. logMessage ;
@@ -626,7 +626,7 @@ export class MI2 extends EventEmitter implements IBackend {
626
626
return this . sendCommand ( "break-condition " + bkptNum + " " + condition ) ;
627
627
}
628
628
629
- setLogPoint ( bkptNum , command ) : Thenable < any > {
629
+ setLogPoint ( bkptNum : number , command : string ) : Thenable < any > {
630
630
const regex = / { ( [ a - z 0 - 9 A - Z -_ \. \> \& \* \[ \] ] * ) } / gm;
631
631
let m :RegExpExecArray ;
632
632
let commands :string = "" ;
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class GDBDebugSession extends MI2DebugSession {
55
55
56
56
protected override launchRequest ( response : DebugProtocol . LaunchResponse , args : LaunchRequestArguments ) : void {
57
57
const dbgCommand = args . gdbpath || "gdb" ;
58
- if ( this . checkCommand ( dbgCommand ) ) {
58
+ if ( ! this . checkCommand ( dbgCommand ) ) {
59
59
this . sendErrorResponse ( response , 104 , `Configured debugger ${ dbgCommand } not found.` ) ;
60
60
return ;
61
61
}
@@ -101,7 +101,7 @@ class GDBDebugSession extends MI2DebugSession {
101
101
102
102
protected override attachRequest ( response : DebugProtocol . AttachResponse , args : AttachRequestArguments ) : void {
103
103
const dbgCommand = args . gdbpath || "gdb" ;
104
- if ( this . checkCommand ( dbgCommand ) ) {
104
+ if ( ! this . checkCommand ( dbgCommand ) ) {
105
105
this . sendErrorResponse ( response , 104 , `Configured debugger ${ dbgCommand } not found.` ) ;
106
106
return ;
107
107
}
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class LLDBDebugSession extends MI2DebugSession {
49
49
50
50
protected override launchRequest ( response : DebugProtocol . LaunchResponse , args : LaunchRequestArguments ) : void {
51
51
const dbgCommand = args . lldbmipath || "lldb-mi" ;
52
- if ( this . checkCommand ( dbgCommand ) ) {
52
+ if ( ! this . checkCommand ( dbgCommand ) ) {
53
53
this . sendErrorResponse ( response , 104 , `Configured debugger ${ dbgCommand } not found.` ) ;
54
54
return ;
55
55
}
@@ -95,7 +95,7 @@ class LLDBDebugSession extends MI2DebugSession {
95
95
96
96
protected override attachRequest ( response : DebugProtocol . AttachResponse , args : AttachRequestArguments ) : void {
97
97
const dbgCommand = args . lldbmipath || "lldb-mi" ;
98
- if ( this . checkCommand ( dbgCommand ) ) {
98
+ if ( ! this . checkCommand ( dbgCommand ) ) {
99
99
this . sendErrorResponse ( response , 104 , `Configured debugger ${ dbgCommand } not found.` ) ;
100
100
return ;
101
101
}
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class MagoDebugSession extends MI2DebugSession {
51
51
52
52
protected override launchRequest ( response : DebugProtocol . LaunchResponse , args : LaunchRequestArguments ) : void {
53
53
const dbgCommand = args . magomipath || "mago-mi" ;
54
- if ( this . checkCommand ( dbgCommand ) ) {
54
+ if ( ! this . checkCommand ( dbgCommand ) ) {
55
55
this . sendErrorResponse ( response , 104 , `Configured debugger ${ dbgCommand } not found.` ) ;
56
56
return ;
57
57
}
@@ -75,7 +75,7 @@ class MagoDebugSession extends MI2DebugSession {
75
75
76
76
protected override attachRequest ( response : DebugProtocol . AttachResponse , args : AttachRequestArguments ) : void {
77
77
const dbgCommand = args . magomipath || "mago-mi" ;
78
- if ( this . checkCommand ( dbgCommand ) ) {
78
+ if ( ! this . checkCommand ( dbgCommand ) ) {
79
79
this . sendErrorResponse ( response , 104 , `Configured debugger ${ dbgCommand } not found.` ) ;
80
80
return ;
81
81
}
You can’t perform that action at this time.
0 commit comments