![](/img/trans.png)
[英]Retrieving data from python script using 'child-process' works in normal node.js script, but not in a required script
[英]In Visual Studio Code run Node.js, call python script as child-process and debug it
我想在nodejs創建子進程以調試python代碼后立即跳入python代碼
Server.js:
const spawn = require("child_process").spawn;
const pythonProcess = spawn('python',["MyPythonFile.py"]);
console.log("Finished!")
MyPythonFile.py:
print("First line I'd like to debug")
print("Second line I'd like to debug")
print("Third line I'd like to debug")
Server.js和MyPythonFile.py都位於同一目錄中,是否有任何方法可以告訴Visual Studio代碼將python文件附加到調試器或為python代碼創建新的調試器實例?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.