Commit 1c9b15e 1 parent eb9f5e4 commit 1c9b15e Copy full SHA for 1c9b15e
File tree 2 files changed +14
-8
lines changed
2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
- The format is based on [ Keep a Changelog] , and this project adheres to [ Semantic
6
- Versioning] .
5
+ The format is based on [ Keep a Changelog] , and this project adheres to [ Semantic Versioning] .
7
6
8
7
[ keep a changelog ] : https://keepachangelog.com/en/1.0.0
9
8
[ semantic versioning ] : https://semver.org/spec/v2.0.0.html
@@ -24,6 +23,8 @@ Versioning].
24
23
- solve the problem of failed parsing of containers ([ @henryriley0 ] )
25
24
- Fixes #421 - Added ` registerLimit ` option to specify the registers to
26
25
display - PR #444 ([ @chenzhiy2001 ] )
26
+ - Resolve the issue of not being able to set the GDB path on Windows
27
+ ([ @henryriley0 ] )
27
28
28
29
## [ 0.27.0] - 2024-02-07
29
30
@@ -123,8 +124,7 @@ Versioning].
123
124
### Fixed
124
125
125
126
- Remove the need for extra trust for debugging workspaces per guidance "for
126
- debug extensions" as noted in the [ Workspace Trust Extension Guide] - PR #272
127
- ([ @GitMensch ] )
127
+ debug extensions" as noted in the [ Workspace Trust Extension Guide] - PR #272 ([ @GitMensch ] )
128
128
- don't abort if ` set target-async ` or ` cd ` fails in attach (brings in line with
129
129
existing behavior from launch) ([ @WebFreak001 ] )
130
130
- Fix simple value formatting list parsing with empty string as first argument -
Original file line number Diff line number Diff line change @@ -96,10 +96,16 @@ export class MI2DebugSession extends DebugSession {
96
96
// verifies that the specified command can be executed
97
97
protected checkCommand ( debuggerName : string ) : boolean {
98
98
try {
99
- const command = process . platform === 'win32' ? 'where' : 'command -v' ;
100
- execSync ( `${ command } ${ debuggerName } ` , { stdio : 'ignore' } ) ;
101
- return true ;
102
- } catch ( error ) {
99
+ if ( process . platform === 'win32' && debuggerName . includes ( "\\" ) ) {
100
+ const command = 'dir' ;
101
+ execSync ( `${ command } ${ debuggerName } ` , { stdio : 'ignore' } ) ;
102
+ return true ;
103
+ }
104
+ else {
105
+ const command = process . platform === 'win32' ? 'where' : 'command -v' ;
106
+ execSync ( `${ command } ${ debuggerName } ` , { stdio : 'ignore' } ) ;
107
+ return true ;
108
+ } } catch ( error ) {
103
109
return false ;
104
110
}
105
111
}
You can’t perform that action at this time.
0 commit comments