chenzhiy2001 / code-debug Goto Github PK
View Code? Open in Web Editor NEWThis project forked from webfreak001/code-debug
支持Rust语言的源代码级操作系统调试工具
License: The Unlicense
This project forked from webfreak001/code-debug
支持Rust语言的源代码级操作系统调试工具
License: The Unlicense
项目问题:
原仓库没有对代码风格进行自动化的修正,每个人编写时会使用自己的默认VSCode风格(比如tab缩进单元、单双引号),作为多人协作项目可能面临代码格式差别过大导致可读性下降以及不一致的问题,同时自己进行 format 时可能会影响到其他人的代码,不利于对 pr 的 code review(虽然不一定有)
解决方案:
配置一个统一的.prettier,尽量遵从原仓库的代码风格,如:不使用空格代替tab、缩进2格、使用双引号来表示字符串等,以减少对原仓库的影响,同时
缺陷:
因为原仓库代码风格本身也不是很一致,因此第一次 format 一定会对现有代码产生大量的变更,现在已有的工作可能需要解决大量的冲突。
不知大家有什么看法,是否需要一个自动格式化工具以方便项目的可持续性维护?
用sendCliCommand()绕过断点组对断点的过滤,强制设置断点,否则从用户态程序回到内核时会产生问题
mi2.ts
接口mibase.ts
)仓库根目录下的readme.md会自动生成Github Pages页面,但是这个页面里的缩进有误。应当调整一下readme.md的格式
https://chenzhiy2001.github.io/code-debug/
the request
param in launch.json
is now attach
, which is a bit confusing. Since this plugin will spawn a new terminal, and run qemu in it, then attach the debugger to the qemu, from the view of the enduser, it behaves like launch
instead of attach
.
The current plugin will be activated by pressing a Cmd+Shift+p, and select a command to launch the debugger. And after running that command, the extension is activated and then send another workbench.action.debug.start
command, which leading to the real debugger adapter to be launched. This interactivate flow has some drawbacks:
workbench.action.debug.start
will launch the debug session with the current selected configuration, if the user created multiple configs in launch.json
and selected some one else, then the extension will fail to continue.workbench.action.debug.start
introduce some indirection on the interactivate flow, the plugin hide some part of the background work from the user (e.g. send the workbench.action.debug.start
command), but left some other parts that the user can interactivate with (e.g., modify the launch.json
). So, the user will confused on what is the difference between clicking the green debug button and run core-debugger.launchCoreDebugger
from the command panel.IMO, the debug plugin should be activated only by click the green debug button, or by pressing the F5.
If submitting a bug please make sure
gdb --version
>= 7.7.1gdb
cwd
and target
are properly setlldb --version
>= 3.7.1lldb-mi
cwd
and target
are properly setScreenshots are helpful but not required
There are many hardcoded consts in fakeMakefile.ts
, I think they should go into the launch.json
. By this way, it can make this extension more flexable, especially when the user need to change some path or filename during debug.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.