Skip to content

Commit

Permalink
Merge pull request #2141 from julia-vscode/sp/debugger-threads
Browse files Browse the repository at this point in the history
fix nthreads for external processes
  • Loading branch information
davidanthoff committed May 5, 2021
2 parents 2911be3 + ce0aba3 commit 5ca8578
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/debugger/juliaDebug.ts
Expand Up @@ -8,7 +8,7 @@ import { DebugProtocol } from 'vscode-debugprotocol'
import { createMessageConnection, Disposable, MessageConnection, StreamMessageReader, StreamMessageWriter } from 'vscode-jsonrpc/node'
import { replStartDebugger } from '../interactive/repl'
import { getCrashReportingPipename } from '../telemetry'
import { generatePipeName } from '../utils'
import { generatePipeName, inferJuliaNumThreads } from '../utils'
import { notifyTypeDebug, notifyTypeExec, notifyTypeOurFinished, notifyTypeRun, notifyTypeStopped, requestTypeBreakpointLocations, requestTypeContinue, requestTypeDisconnect, requestTypeEvaluate, requestTypeExceptionInfo, requestTypeNext, requestTypeRestartFrame, requestTypeScopes, requestTypeSetBreakpoints, requestTypeSetExceptionBreakpoints, requestTypeSetFunctionBreakpoints, requestTypeSetVariable, requestTypeSource, requestTypeStackTrace, requestTypeStepIn, requestTypeStepInTargets, requestTypeStepOut, requestTypeTerminate, requestTypeThreads, requestTypeVariables } from './debugProtocol'

/**
Expand Down Expand Up @@ -235,7 +235,8 @@ export class JuliaDebugSession extends LoggingDebugSession {
getCrashReportingPipename()
],
env: {
JL_ARGS: args.args ? args.args.map(i => Buffer.from(i).toString('base64')).join(';') : ''
JL_ARGS: args.args ? args.args.map(i => Buffer.from(i).toString('base64')).join(';') : '',
JULIA_NUM_THREADS: inferJuliaNumThreads()
}
})
this._debuggeeTerminal.show(false)
Expand Down

0 comments on commit 5ca8578

Please sign in to comment.