Page 1 of 1

VS -Code: Wie kann ich den Befehl "Process ID über Shell" in stirp.json abrufen?

Posted: 22 Aug 2025, 05:19
by Anonymous
In unserem Visual Studio -Code -Konfiguration Start.json sieht so aus: < /pt>

Code: Select all

{
"version": "0.2.0",
"configurations": [
{
"type": "fb-python",
"request": "attach",
"name": "Attach to a running Python process",
"processId": "${command:pickProcess}",
"subProcess": true,
"justMyCode": true,
"redirectOutput": true,
"django": true,
"client": "instagram"
}
]
}
< /code>
Es wird das Dialogfeld "Prozessauswahl" jedes Mal angezeigt, wenn ich auf "Debugg" klicke. [url=viewtopic.php?t=14917]Ich möchte[/url] die Prozess -ID mit einem Shell -Befehl berechnen: < /p>
ps -ef | grep "async uWSGI worker 1" | grep -v grep | awk '{print $2}'
Wie kann ich das tun, ohne eine benutzerdefinierte Erweiterung zu schreiben?