Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] 请问终端是在哪里创建的? #3590

Open
zhuzeyu22 opened this issue Apr 25, 2024 · 5 comments
Open

[Question] 请问终端是在哪里创建的? #3590

zhuzeyu22 opened this issue Apr 25, 2024 · 5 comments
Labels
💬 question Further information is requested

Comments

@zhuzeyu22
Copy link
Contributor

我在改写 python 调试器,里面启动时候启动的终端请问是在哪个代码模块里面启动的?

@zhuzeyu22 zhuzeyu22 added the 💬 question Further information is requested label Apr 25, 2024
@Ricbet
Copy link
Member

Ricbet commented Apr 26, 2024

看一下这里
https://github.com/opensumi/core/blob/main/packages/debug/src/browser/debug-session.ts#L143

@zhuzeyu22
Copy link
Contributor Author

看到了 runInTerminal 这里的请求是插件发起的吗?还是别的哪里发起的,我想找到发起方修改 cmd 的第一个参数。

@Ricbet
Copy link
Member

Ricbet commented Apr 26, 2024

插件发起的一个 RunInTerminal Request DAP 请求。你要修改的参数在 launch.json 里也可以配置的

@zhuzeyu22
Copy link
Contributor Author

比如说我想要使用 python 插件,启动指定路径的 python,但是插件里面默认启动的是系统环境里面的 python ,这个 launch.json 里面哪个字段可以配置?

@Ricbet
Copy link
Member

Ricbet commented Apr 26, 2024

噢,你指的是这个配置啊,可以在 setting.json 里配的,python 插件都是有提供配置项的,具体可以看看 python 插件的文档

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬 question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants