μ΄μ λν μμ μ¬νμ΄ μ΄μ Docker νμ₯ λ²μ 1.3.1μμ 릴리μ€λμμ΅λλ€.
Docker νμ₯ v 1.3.1μ΄ μκ³ μ¬μ ν μ΄κ²μ λ³΄κ³ μμ΅λλ€.
λ²μ : 1.46.1
컀λ°: cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
λ μ§: 2020-06-17T21:17:14.222Z (2μΌ μ )
μ μ: 7.3.1
ν¬λ‘¬: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-μ μ.0
μ΄μ 체μ : λ€μ x64 19.3.0
> Executing task: docker-run: debug <
Unable to find the debugger in the Python extension.
The terminal process failed to launch (exit code: 1)
Terminal will be reused by tasks, press any key to close it.
λ°μΉ.json
{
"version": "0.2.0",
"logToFile": true,
"configurations": [
{
"name": "Docker: Python - General",
"type": "docker",
"request": "launch",
"preLaunchTask": "docker-run: debug",
"python": {
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "/code"
}
],
"projectType": "general"
}
}
]
}
λλ vscodeμ μ΅μνμ§ μμ§λ§ μ¬κΈ°μ λ΄κ° λ‘컬μμ 보λ κ²μ λν μ’ λ μμΈν λ΄μ©μ΄ μμ΅λλ€.
λ²κ·Έ μμ 컀λ°μμ launcher.pyμ μ½λκ° μ μ©λ κ² κ°μ΅λλ€.
.vscodeμμ "λλ²κ±°λ₯Ό μ°Ύμ μ μμ"μ λν΄ grepνλ©΄ λ€μκ³Ό κ°μ΄ νμλ©λλ€.
/.vscode//extensions/ms-azuretools.vscode-docker-1.3.1/dist/extension.bundle.js
<snip>
||void 0===e?void 0:e.debug)||void 0===n?void 0:n.getDebuggerPackagePath());if(s)return s;throw new Error(a.localize("vscode-docker.tasks.pythonExt.noDebugger",
"Unable to find the debugger in the Python extension."))} ,e.getPythonExtension=getPythonExtension}(n.PythonExtensionHelper||(n.PythonExtensionHelper={}))},function(e,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.nodeDebugHelper=n.NodeDebugHelper=void 0;const s=i(367),o=i(368),a=i(193);class NodeDebugHelper{async provideDebugConfigurations(e){return[{name:"Docker Node.js Launch",type:"docker",request:"launch",preLaunchTask:"docker-run: debug",platform:"node"}]}async resolveDebugConfiguration(e,n){const i=n.node||{},l=s.NodeTaskHelper.inferPackagePath(i.package,e.folder),u=await o.readPackage(l),c=await o.inferPackageName(u,l),p=a.inferContainerName(n,e,c),d={containerName:p,dockerServerReadyAction:a.resolveDockerServerReadyAction(n,{containerName:p},!0),removeContainerAfterDebug:n.removeContainerAfterDebug},m={...i,name:n.name,dockerOptions:d,preLaunchTask:n.preLaunchTask,request:"attach",type:"node2"};return void 0===m.localRoot&&(m.localRoot="${workspaceFolder}"),void 0===m.port&&
<snip>
컀λ°μ .ts νμΌμμ μ κ±°ν κ²μΌλ‘ 보μ λλ€. μλ§λ js λ²λ€μ μ λΉλκ° μ λ°μ΄νΈμμ κ°μ μ μ©λμ§ μμ΅λκΉ?
@kbroughton @EduardBlinov @Mikecom32 μ΄λ€ λ²μ μ Python νμ₯μ΄ μμ΅λκΉ?
νΈμ§: @Mikecom32 κ° 2020.6.88468κ³Ό 2020.6.89148μ λͺ¨λ μλν κ²μΌλ‘ λνλ¬μ΅λλ€. λ λ€ μλν΄μΌ ν©λλ€.
@luabud μ¬μ©μκ° μλ‘μ΄ debugpy λλ²κ±°λ₯Ό μ΅νΈμμν μ μλ λ°©λ²μ΄ μμ΅λκΉ? λ λ²μ μ Python νμ₯ λͺ¨λμμ Python νμ₯μμ undefined
λ₯Ό κ°μ ΈμμΌ νλ μ μΌν λ°©λ²μ DebugAdapterNewPtvsd.experiment
μ΅νΈμΈλμ§ μμ κ²μΌλ‘ κ²°μ λλ κ²½μ°μ
λλ€.
λ¬Έμ λ Python νμ₯μ μμμΌλ©° https://github.com/microsoft/vscode-python/issues/12481μ κ·Όλ³Έ μμΈκ³Ό λμΌν©λλ€
https://github.com/microsoft/vscode-python/issues/12484 μμ @ddurham2 κ° μΉκ³ μλ κ²μΌ μλ μμ΅λλ€.
νμ₯ νλ‘κ·Έλ¨μ v2020.6.89148 @bwateratmsft λΌκ³ λ§ν©λλ€.
@kbroughton κ°μ¬ν©λλ€. μ κ·Έλ μ΄λν νμ μμ΄ Python νμ₯ μΈ‘λ©΄μμ μ§κΈ μμ ν΄μΌ νλ€κ³ μκ°ν©λλ€. μλν΄ λ³΄μμ§λ§ λ μ΄μ λ¬Έμ λ₯Ό μ¬νν μ μμ΅λλ€. μλν΄ λ³Ό μ μμ΅λκΉ? μ€ν νλ μμν¬κ° Python νμ₯μμ μ΄λ»κ² ꡬνλμλμ§λ νμ€νμ§ μμ΅λλ€. @luabud μ΄ μ΄μ λν΄ λ΅λ³ν μ μμ΅λλ€. κ·Έλ¬λ μ μ€ν λ°μ΄ν°κ° λ€μ μλνκΈ° μμνκΈ° μ μ λ€μ΄λ‘λνλ λ° μ½κ°μ μκ°μ΄ 걸릴 μ μμ΅λλ€.
nether docker λλ python νμ₯μ VS μ½λμ μ¬μ©ν μ μλ μ λ°μ΄νΈλ₯Ό 보μ¬μ€λλ€. μ΄λ»κ² μλν©λκΉ? @bwateratmsft
@kbroughton Python νμ₯μ μμ μ¬νμ μ΄λ―Έ μλ²μμ μ€νμ λν μ 보λ₯Ό κ°μ Έμ€κ³ μκΈ° λλ¬Έμ μ λ°μ΄νΈκ° νμνμ§ μμμΌ ν©λλ€. VS Codeλ₯Ό λ€μ μμν΄λ λμμ΄ λμ§ μμ΅λκΉ?
μ¬κΈ° μμ Pavelμ΄ μΈκΈν μ€μ μ μΆκ°ν μ μμ΅λλ€.
"python.experiments.optInto": [
"DebugAdapterFactory - experiment",
"PtvsdWheels37 - experiment"
],
VSCodeλ₯Ό λ€μ μμνμ§λ§ λμΌν μ€λ₯κ° λ°μν©λλ€.
μ¬κΈ° λ΄ launch.jsonμ΄ μμ΅λλ€.
{
// IntelliSenseλ₯Ό μ¬μ©νμ¬ κ°λ₯ν νΉμ±μ λν΄ μμλ΄
λλ€.
// κΈ°μ‘΄ μμ±μ λν μ€λͺ
μ λ³΄λ €λ©΄ λ§μ°μ€λ₯Ό κ°μ Έκ°λλ€.
// μμΈν λ΄μ©μ λ€μμ μ°Έμ‘°νμΈμ.
https://go.microsoft.com/fwlink/?linkid=830387
"λ²μ ": "0.2.0",
"logToFile": μ°Έ,
"ꡬμ±": [
{
"μ΄λ¦": "λ컀: Python - μΌλ°",
"μ ν": "λ컀",
"μμ²": "μ€ν",
"preLaunchTask": "λ컀 μ€ν: λλ²κ·Έ",
"νμ΄μ¬": {
"κ²½λ‘ λ§€ν": [
{
"localRoot": "${workspaceFolder}",
"μ격 루νΈ": "/μ½λ"
}
],
"projectType": "μΌλ°"
}
}
],
"python.experiments.optInto": [
"DebugAdapterFactory - μ€ν",
"PtvsdWheels37 - μ€ν"
]
}
2020λ 6μ 22μΌ μμμΌ μ€ν 4μ 55λΆμ Hani Amr [email protected]μ΄ μμ±νμ΅λλ€.
@kbroughton https://github.com/kbroughton Pythonμμ μμ
νμ₯ νλ‘κ·Έλ¨μ μ΄λ―Έ νλ§ μ€μ΄λ―λ‘ μ λ°μ΄νΈκ° νμνμ§ μμ΅λλ€.
μλ²μ μ€νμ λν μ 보, VS Code λ€μ μμ
λμμ΄λμ§ μμλ€?μ¬κΈ°μμ Pavelμ΄ μΈκΈν μ€μ μ μΆκ°ν μ μμ΅λλ€.
https://github.com/microsoft/vscode-python/issues/12481#issuecomment-647266379
:"python.experiments.optInto": [ "DebugAdapterFactory - experiment", "PtvsdWheels37 - experiment" ],
β
λΉμ μ΄ μΈκΈλμκΈ° λλ¬Έμ μ΄κ²μ λ°λ κ²μ λλ€.
μ΄ μ΄λ©μΌμ μ§μ λ΅μ₯νκ³ GitHubμμ νμΈνμΈμ.
https://github.com/microsoft/vscode-docker/issues/2080#issuecomment-647788957 ,
λλ ꡬλ μ·¨μ
https://github.com/notifications/unsubscribe-auth/ACQSXMQ7OKS75IR7L64A7LLRX7HOFANCNFSM4OBVI4ZA
.
ν΄λΉ python.experiments.optInto
μΉμ
μ launch.jsonμ΄ μλ settings.jsonμΌλ‘ μ΄λν΄μΌ ν©λλ€.
Python νμ₯ μΈ‘λ©΄μμ μμ λ κ²μΌλ‘ 보μ΄λ―λ‘ μ΄ λ¬Έμ λ₯Ό λ€μ λ«κ² μ΅λλ€.
κ°μ₯ μ μ©ν λκΈ
Docker νμ₯ v 1.3.1μ΄ μκ³ μ¬μ ν μ΄κ²μ λ³΄κ³ μμ΅λλ€.
λ²μ : 1.46.1
컀λ°: cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
λ μ§: 2020-06-17T21:17:14.222Z (2μΌ μ )
μ μ: 7.3.1
ν¬λ‘¬: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-μ μ.0
μ΄μ 체μ : λ€μ x64 19.3.0
λ°μΉ.json