File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ import {
38
38
getCurrentGoWorkspaceFromGOPATH ,
39
39
getInferredGopath ,
40
40
} from '../utils/pathUtils' ;
41
- import { killProcessTree } from '../utils/processUtils' ;
41
+ import { killProcessTree } from '../utils/processUtils' ;
42
42
43
43
const fsAccess = util . promisify ( fs . access ) ;
44
44
const fsUnlink = util . promisify ( fs . unlink ) ;
@@ -473,7 +473,11 @@ export class Delve {
473
473
log ( `Using GOPATH: ${ env [ 'GOPATH' ] } ` ) ;
474
474
log ( `Using GOROOT: ${ this . goroot } ` ) ;
475
475
log ( `Using PATH: ${ env [ 'PATH' ] } ` ) ;
476
-
476
+ if ( launchArgs . trace === 'verbose' ) {
477
+ Object . keys ( env ) . forEach ( ( key ) => {
478
+ log ( ' export ' + key + '="' + env [ key ] + '"' ) ;
479
+ } ) ;
480
+ }
477
481
if ( ! ! launchArgs . noDebug ) {
478
482
if ( mode === 'debug' ) {
479
483
this . noDebug = true ;
@@ -529,8 +533,7 @@ export class Delve {
529
533
530
534
if ( ! existsSync ( launchArgs . dlvToolPath ) ) {
531
535
log (
532
- `Couldn't find dlv at the Go tools path, ${ process . env [ 'GOPATH' ] } ${
533
- env [ 'GOPATH' ] ? ', ' + env [ 'GOPATH' ] : ''
536
+ `Couldn't find dlv at the Go tools path, ${ process . env [ 'GOPATH' ] } ${ env [ 'GOPATH' ] ? ', ' + env [ 'GOPATH' ] : ''
534
537
} or ${ envPath } `
535
538
) ;
536
539
return reject (
You can’t perform that action at this time.
0 commit comments