yang-xiaofeng1101 / yang-xiaofeng1101.github.io

杨晓峰的个人博客
1 stars 0 forks source link

vscode图形界面在qemu上调试裸机程序 | yangxiaofeng的博客 #8

Open yang-xiaofeng1101 opened 2 years ago

yang-xiaofeng1101 commented 2 years ago

https://yang-xiaofeng1101.github.io/2022/02/23/vscode%E5%9B%BE%E5%BD%A2%E7%95%8C%E9%9D%A2%E5%9C%A8qemu%E4%B8%8A%E8%B0%83%E8%AF%95%E8%A3%B8%E6%9C%BA%E7%A8%8B%E5%BA%8F/

  1. 准备工作1)从扩展安装ms-vscode.cpptools插件2)配置文件launch.json  从顶层目录打开miniOS项目,编辑debug配置文件launch.json,点击debug,创建launch.json文件,输入以下内容,重点在miDebuggerServerAddress设置为qemu对外暴露的调试端口IP填写qemu虚拟机所在的主机IP。progra