Skip to content

Commit 3675c61

Browse files
committed
fix: executable path not being calculated correctly
1 parent f5232c6 commit 3675c61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/debugger/node/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {
33
NuclideDebuggerProvider,
44
} from '@atom-ide-community/nuclide-debugger-common/types';
55
import * as React from 'react';
6-
import { resolve as pathResolve } from 'path';
6+
import path from 'path';
77
import {AutoGenLaunchAttachProvider} from '@atom-ide-community/nuclide-debugger-common/AutoGenLaunchAttachProvider';
88

99
export function createNodeDebuggerProvider(): NuclideDebuggerProvider {
@@ -111,10 +111,10 @@ function getNodeConfig(): AutoGenConfig {
111111
const adapterExecutable = {
112112
command: 'node',
113113
args: [
114-
pathResolve('./VendorLib/vscode-node-debug2/out/src/nodeDebug.js')
114+
path.resolve(path.join(__dirname, 'VendorLib/vscode-node-debug2/out/src/nodeDebug.js'))
115115
],
116116
}
117-
const adapterRoot = pathResolve('./VendorLib/vscode-node-debug2')
117+
const adapterRoot = path.resolve(path.join(__dirname, 'VendorLib/vscode-node-debug2'))
118118

119119
return {
120120
launch: {

0 commit comments

Comments
 (0)